From 2833706699504f80c74701b55ae13335040c2fc0 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Wed, 17 Oct 2007 22:50:34 +0000 Subject: 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 --- activerecord/test/fixtures_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') 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 -- cgit v1.2.3