diff options
-rwxr-xr-x | activerecord/test/fixtures_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/fixtures_test.rb b/activerecord/test/fixtures_test.rb index 66fc4ed65d..f35e1ef2c7 100755 --- a/activerecord/test/fixtures_test.rb +++ b/activerecord/test/fixtures_test.rb @@ -190,7 +190,7 @@ class FixturesTest < Test::Unit::TestCase def test_binary_in_fixtures assert_equal 1, @binaries.size - data = File.read(BINARY_FIXTURE_PATH).freeze + data = File.open(BINARY_FIXTURE_PATH, "rb").read.freeze assert_equal data, @flowers.data end end |