summaryrefslogtreecommitdiff
path: root/spec/ruby/core/io/ioctl_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/io/ioctl_spec.rb')
-rw-r--r--spec/ruby/core/io/ioctl_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/io/ioctl_spec.rb b/spec/ruby/core/io/ioctl_spec.rb
index 0f2b67ac44..e819a217a8 100644
--- a/spec/ruby/core/io/ioctl_spec.rb
+++ b/spec/ruby/core/io/ioctl_spec.rb
@@ -4,7 +4,7 @@ require_relative 'fixtures/classes'
describe "IO#ioctl" do
platform_is_not :windows do
it "raises IOError on closed stream" do
- lambda { IOSpecs.closed_io.ioctl(5, 5) }.should raise_error(IOError)
+ -> { IOSpecs.closed_io.ioctl(5, 5) }.should raise_error(IOError)
end
end
@@ -22,7 +22,7 @@ describe "IO#ioctl" do
it "raises an Errno error when ioctl fails" do
File.open(__FILE__, 'r') do |f|
- lambda {
+ -> {
# TIOCGWINSZ in /usr/include/asm-generic/ioctls.h
f.ioctl 0x5413, nil
}.should raise_error(Errno::ENOTTY)