Prevent a warning

```
[19889/25837] TestArgf#test_puts-e:1: warning: ARGF.class#write is outdated interface which accepts just one argument
 = 0.06 s
```
https://rubyci.s3.amazonaws.com/debian12/ruby-master/log/20240404T033003Z.log.html.gz
This commit is contained in:
Yusuke Endoh 2024-04-04 14:10:23 +09:00
parent 8aa8fce320
commit 6d82be499b

View File

@ -1154,7 +1154,7 @@ class TestArgf < Test::Unit::TestCase
t = make_tempfile0("argf-#{__method__}")
t.puts 'bar'
t.close
ruby('-pi-', '-e', "print ARGF.puts('foo')", t.path) do |f|
ruby('-pi-', '-W0', '-e', "print ARGF.puts('foo')", t.path) do |f|
end
assert_equal("foo\nbar\n", File.read(t.path))
end