diff --git a/spec/ruby/core/file/shared/path.rb b/spec/ruby/core/file/shared/path.rb index 3f2fccafa9..772272909c 100644 --- a/spec/ruby/core/file/shared/path.rb +++ b/spec/ruby/core/file/shared/path.rb @@ -69,7 +69,7 @@ describe :file_path, shared: true do File.open(@dir, File::RDWR | File::TMPFILE) do |f| -> { f.send(@method) }.should raise_error(IOError) end - rescue Errno::EOPNOTSUPP + rescue Errno::EOPNOTSUPP, Errno::EINVAL # EOPNOTSUPP: no support from the filesystem 1.should == 1 end