diff options
Diffstat (limited to 'spec/ruby/library/stringio/puts_spec.rb')
-rw-r--r-- | spec/ruby/library/stringio/puts_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/stringio/puts_spec.rb b/spec/ruby/library/stringio/puts_spec.rb index 152bfb13f8..2d3db25c5f 100644 --- a/spec/ruby/library/stringio/puts_spec.rb +++ b/spec/ruby/library/stringio/puts_spec.rb @@ -148,11 +148,11 @@ end describe "StringIO#puts when self is not writable" do it "raises an IOError" do io = StringIO.new("test", "r") - lambda { io.puts }.should raise_error(IOError) + -> { io.puts }.should raise_error(IOError) io = StringIO.new("test") io.close_write - lambda { io.puts }.should raise_error(IOError) + -> { io.puts }.should raise_error(IOError) end end |