From 5c276e1cc91c5ab2a41fbf7827af2fed914a2bc0 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sat, 27 Jul 2019 12:40:09 +0200 Subject: Update to ruby/spec@875a09e --- spec/ruby/library/stringio/append_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/ruby/library/stringio/append_spec.rb') diff --git a/spec/ruby/library/stringio/append_spec.rb b/spec/ruby/library/stringio/append_spec.rb index 08500bc520..a8bc6aabdb 100644 --- a/spec/ruby/library/stringio/append_spec.rb +++ b/spec/ruby/library/stringio/append_spec.rb @@ -55,11 +55,11 @@ end describe "StringIO#<< when self is not writable" do it "raises an IOError" do io = StringIO.new("test", "r") - lambda { io << "test" }.should raise_error(IOError) + -> { io << "test" }.should raise_error(IOError) io = StringIO.new("test") io.close_write - lambda { io << "test" }.should raise_error(IOError) + -> { io << "test" }.should raise_error(IOError) end end -- cgit v1.2.3