mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@519df35
This commit is contained in:
parent
31bb66a19d
commit
1c938a72aa
83 changed files with 1416 additions and 308 deletions
|
@ -56,7 +56,7 @@ describe :io_binwrite, shared: true do
|
|||
end
|
||||
|
||||
it "doesn't truncate and writes at the given offset after passing empty opts" do
|
||||
IO.send(@method, @filename, "hello world!", 1, {})
|
||||
IO.send(@method, @filename, "hello world!", 1, **{})
|
||||
File.read(@filename).should == "0hello world!34567890123456789"
|
||||
end
|
||||
|
||||
|
@ -72,7 +72,7 @@ describe :io_binwrite, shared: true do
|
|||
end
|
||||
|
||||
it "truncates if empty :opts provided and offset skipped" do
|
||||
IO.send(@method, @filename, "hello, world!", {})
|
||||
IO.send(@method, @filename, "hello, world!", **{})
|
||||
File.read(@filename).should == "hello, world!"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue