Skip to content

Commit

Permalink
ManagedTempfile must be in binary mode
Browse files Browse the repository at this point in the history
Seems like requiring Rails switches external_encoding
  • Loading branch information
julik committed Mar 29, 2024
1 parent 19cc72f commit a1b6280
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/support/managed_tempfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class ManagedTempfile < Tempfile

def initialize(*)
super
binmode
@@managed_tempfiles << self
end

Expand Down

0 comments on commit a1b6280

Please sign in to comment.