diff options
Diffstat (limited to 'activerecord/test/cases/fixtures_test.rb')
-rwxr-xr-x | activerecord/test/cases/fixtures_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/cases/fixtures_test.rb b/activerecord/test/cases/fixtures_test.rb index bedb26f28d..182f4f0f0b 100755 --- a/activerecord/test/cases/fixtures_test.rb +++ b/activerecord/test/cases/fixtures_test.rb @@ -180,7 +180,9 @@ class FixturesTest < ActiveRecord::TestCase def test_binary_in_fixtures assert_equal 1, @binaries.size - data = File.open(ASSETS_ROOT + "/flowers.jpg", "rb").read.freeze + data = File.read(ASSETS_ROOT + "/flowers.jpg") + data.force_encoding('ASCII-8BIT') if data.respond_to?(:force_encoding) + data.freeze assert_equal data, @flowers.data end end |