diff options
author | Michael Koziarski <michael@koziarski.com> | 2007-10-17 22:50:34 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2007-10-17 22:50:34 +0000 |
commit | 2833706699504f80c74701b55ae13335040c2fc0 (patch) | |
tree | da16c6ef28226b09861a5fec546e874cf0d936f5 /activerecord | |
parent | 8ed1e885b730e229592f8749b19f47a96642e0ac (diff) | |
download | rails-2833706699504f80c74701b55ae13335040c2fc0.tar.gz rails-2833706699504f80c74701b55ae13335040c2fc0.tar.bz2 rails-2833706699504f80c74701b55ae13335040c2fc0.zip |
Read in binary mode to make sure windows support keeps working. [lawrence] Closes #9912
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7959 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-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 |