summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringio/print_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringio/print_spec.rb')
-rw-r--r--spec/ruby/library/stringio/print_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/stringio/print_spec.rb b/spec/ruby/library/stringio/print_spec.rb
index 144a219509..d0f07d1e50 100644
--- a/spec/ruby/library/stringio/print_spec.rb
+++ b/spec/ruby/library/stringio/print_spec.rb
@@ -91,10 +91,10 @@ end
describe "StringIO#print when self is not writable" do
it "raises an IOError" do
io = StringIO.new("test", "r")
- lambda { io.print("test") }.should raise_error(IOError)
+ -> { io.print("test") }.should raise_error(IOError)
io = StringIO.new("test")
io.close_write
- lambda { io.print("test") }.should raise_error(IOError)
+ -> { io.print("test") }.should raise_error(IOError)
end
end