aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/io/readline_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/io/readline_spec.rb')
-rw-r--r--spec/ruby/core/io/readline_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/io/readline_spec.rb b/spec/ruby/core/io/readline_spec.rb
index 3eae6bfa47..7cb1601816 100644
--- a/spec/ruby/core/io/readline_spec.rb
+++ b/spec/ruby/core/io/readline_spec.rb
@@ -29,11 +29,11 @@ describe "IO#readline" do
it "raises EOFError on end of stream" do
IOSpecs.lines.length.times { @io.readline }
- lambda { @io.readline }.should raise_error(EOFError)
+ -> { @io.readline }.should raise_error(EOFError)
end
it "raises IOError on closed stream" do
- lambda { IOSpecs.closed_io.readline }.should raise_error(IOError)
+ -> { IOSpecs.closed_io.readline }.should raise_error(IOError)
end
it "assigns the returned line to $_" do