Skip to content

Commit

Permalink
Set the binary mode for Tempfile creation in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Jul 13, 2021
1 parent 9d67128 commit 8273d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_error_highlight.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ def custom_formatter.message_for(spot)
end

def test_hard_tabs
tmp = Tempfile.new(["error_highlight_test", ".rb"])
tmp = Tempfile.new(["error_highlight_test", ".rb"], binmode: true)
tmp << "\t \t1.time {}\n"
tmp.close(false)

Expand Down

0 comments on commit 8273d3b

Please sign in to comment.