aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/io/shared/readlines.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/io/shared/readlines.rb')
-rw-r--r--spec/ruby/core/io/shared/readlines.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/io/shared/readlines.rb b/spec/ruby/core/io/shared/readlines.rb
index 9bc02da0bd..de803f42e5 100644
--- a/spec/ruby/core/io/shared/readlines.rb
+++ b/spec/ruby/core/io/shared/readlines.rb
@@ -107,7 +107,7 @@ describe :io_readlines_options_19, shared: true do
options = mock("io readlines options Hash")
options.should_receive(:to_hash).and_return({ mode: "w" })
-> do
- IO.send(@method, @filename, 10, options, &@object)
+ IO.send(@method, @filename, 10, **options, &@object)
end.should raise_error(IOError)
end
end
@@ -135,7 +135,7 @@ describe :io_readlines_options_19, shared: true do
options = mock("io readlines options Hash")
options.should_receive(:to_hash).and_return({ mode: "w" })
-> do
- IO.send(@method, @filename, " ", options, &@object)
+ IO.send(@method, @filename, " ", **options, &@object)
end.should raise_error(IOError)
end
end
@@ -170,7 +170,7 @@ describe :io_readlines_options_19, shared: true do
options = mock("io readlines options Hash")
options.should_receive(:to_hash).and_return({ mode: "w" })
-> do
- IO.send(@method, @filename, " ", options, &@object)
+ IO.send(@method, @filename, " ", **options, &@object)
end.should raise_error(IOError)
end
end
@@ -202,7 +202,7 @@ describe :io_readlines_options_19, shared: true do
options = mock("io readlines options Hash")
options.should_receive(:to_hash).and_return({ mode: "w" })
-> do
- IO.send(@method, @filename, " ", 10, options, &@object)
+ IO.send(@method, @filename, " ", 10, **options, &@object)
end.should raise_error(IOError)
end
end