aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures_test.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2007-10-17 22:50:34 +0000
committerMichael Koziarski <michael@koziarski.com>2007-10-17 22:50:34 +0000
commit2833706699504f80c74701b55ae13335040c2fc0 (patch)
treeda16c6ef28226b09861a5fec546e874cf0d936f5 /activerecord/test/fixtures_test.rb
parent8ed1e885b730e229592f8749b19f47a96642e0ac (diff)
downloadrails-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/test/fixtures_test.rb')
-rwxr-xr-xactiverecord/test/fixtures_test.rb2
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