summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringio/shared/getc.rb
diff options
Diffstat (limited to 'spec/ruby/library/stringio/shared/getc.rb')
-rw-r--r--spec/ruby/library/stringio/shared/getc.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/stringio/shared/getc.rb b/spec/ruby/library/stringio/shared/getc.rb
index 3e064f9c1e..6318bcc30f 100644
--- a/spec/ruby/library/stringio/shared/getc.rb
+++ b/spec/ruby/library/stringio/shared/getc.rb
@@ -34,10 +34,10 @@ end
describe :stringio_getc_not_readable, shared: true do
it "raises an IOError" do
io = StringIO.new("xyz", "w")
- lambda { io.send(@method) }.should raise_error(IOError)
+ -> { io.send(@method) }.should raise_error(IOError)
io = StringIO.new("xyz")
io.close_read
- lambda { io.send(@method) }.should raise_error(IOError)
+ -> { io.send(@method) }.should raise_error(IOError)
end
end