diff options
Diffstat (limited to 'spec/ruby/core/io/ioctl_spec.rb')
-rw-r--r-- | spec/ruby/core/io/ioctl_spec.rb | 4 |
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 e819a217a8..8dcd9eb2c6 100644 --- a/spec/ruby/core/io/ioctl_spec.rb +++ b/spec/ruby/core/io/ioctl_spec.rb @@ -20,12 +20,12 @@ describe "IO#ioctl" do end end - it "raises an Errno error when ioctl fails" do + it "raises a system call error when ioctl fails" do File.open(__FILE__, 'r') do |f| -> { # TIOCGWINSZ in /usr/include/asm-generic/ioctls.h f.ioctl 0x5413, nil - }.should raise_error(Errno::ENOTTY) + }.should raise_error(SystemCallError) end end end |