Skip to content
Browse files

Read in binary mode to make sure windows support keeps working. [lawr…

…ence] Closes #9912

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7959 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 8ed1e88 commit 2833706699504f80c74701b55ae13335040c2fc0 @NZKoz NZKoz committed Oct 17, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/fixtures_test.rb
View
2 activerecord/test/fixtures_test.rb
@@ -190,7 +190,7 @@ def test_subsubdir_file_with_arbitrary_name
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

0 comments on commit 2833706

Please sign in to comment.
Something went wrong with that request. Please try again.