mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
[ruby/error_highlight] Set the binary mode for Tempfile creation in a test
8273d3b6f2
This commit is contained in:
parent
472d8c5555
commit
a5d6ea9266
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue