aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/io/ungetc_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/io/ungetc_spec.rb')
-rw-r--r--spec/ruby/core/io/ungetc_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/io/ungetc_spec.rb b/spec/ruby/core/io/ungetc_spec.rb
index 7d090d0e5d..34d4caf745 100644
--- a/spec/ruby/core/io/ungetc_spec.rb
+++ b/spec/ruby/core/io/ungetc_spec.rb
@@ -100,7 +100,7 @@ describe "IO#ungetc" do
it "makes subsequent unbuffered operations to raise IOError" do
@io.getc
@io.ungetc(100)
- lambda { @io.sysread(1) }.should raise_error(IOError)
+ -> { @io.sysread(1) }.should raise_error(IOError)
end
it "does not affect the stream and returns nil when passed nil" do
@@ -130,6 +130,6 @@ describe "IO#ungetc" do
it "raises IOError on closed stream" do
@io.getc
@io.close
- lambda { @io.ungetc(100) }.should raise_error(IOError)
+ -> { @io.ungetc(100) }.should raise_error(IOError)
end
end