Skip to content

Commit

Permalink
Fix binary fixture test on Windows
Browse files Browse the repository at this point in the history
[#2597 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
rob-at-thewebfellas authored and jeremy committed Aug 9, 2009
1 parent d804153 commit 4b7f95e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/fixtures_test.rb
Expand Up @@ -185,7 +185,7 @@ def test_subsubdir_file_with_arbitrary_name

def test_binary_in_fixtures
assert_equal 1, @binaries.size
data = File.read(ASSETS_ROOT + "/flowers.jpg")
data = File.open(ASSETS_ROOT + "/flowers.jpg", 'rb') { |f| f.read }
data.force_encoding('ASCII-8BIT') if data.respond_to?(:force_encoding)
data.freeze
assert_equal data, @flowers.data
Expand Down

0 comments on commit 4b7f95e

Please sign in to comment.