aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/io/shared/tty.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/io/shared/tty.rb')
-rw-r--r--spec/ruby/core/io/shared/tty.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/io/shared/tty.rb b/spec/ruby/core/io/shared/tty.rb
index 947b887f81..82a780a9f3 100644
--- a/spec/ruby/core/io/shared/tty.rb
+++ b/spec/ruby/core/io/shared/tty.rb
@@ -20,6 +20,6 @@ describe :io_tty, shared: true do
end
it "raises IOError on closed stream" do
- lambda { IOSpecs.closed_io.send @method }.should raise_error(IOError)
+ -> { IOSpecs.closed_io.send @method }.should raise_error(IOError)
end
end