Merge pull request #39234 from aidanharan/binary-fixture-windows
Test failing on Windows because binary file being read inconsistently
This commit is contained in:
commit
f43e4a78bd
|
@ -10,7 +10,7 @@ class ActiveRecord::FixtureSet::RenderContext # :nodoc:
|
|||
end
|
||||
|
||||
def binary(path)
|
||||
%(!!binary "#{Base64.strict_encode64(File.read(path))}")
|
||||
%(!!binary "#{Base64.strict_encode64(File.read(path, mode: 'rb'))}")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue