[ruby/error_highlight] Set the binary mode for Tempfile creation in a test

8273d3b6f2
This commit is contained in:
Yusuke Endoh 2021-07-13 20:29:30 +09:00 committed by git
parent 472d8c5555
commit a5d6ea9266

View file

@ -1002,7 +1002,7 @@ undefined method `time' for 1:Integer
end end
def test_hard_tabs 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 << "\t \t1.time {}\n"
tmp.close(false) tmp.close(false)