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
This commit is contained in:
Michael Koziarski 2007-10-17 22:50:34 +00:00
parent 8ed1e885b7
commit 2833706699
1 changed files with 1 additions and 1 deletions

View File

@ -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