Merge pull request #39234 from aidanharan/binary-fixture-windows

Test failing on Windows because binary file being read inconsistently
This commit is contained in:
Eugene Kenny 2020-05-12 23:33:47 +01:00 committed by GitHub
commit f43e4a78bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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