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:
parent
8ed1e885b7
commit
2833706699
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue