summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb')
-rw-r--r--spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb b/spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb
index bf93cd977e..c77f3bdbae 100644
--- a/spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb
+++ b/spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb
@@ -25,8 +25,8 @@ with_feature :ancillary_data do
@data.cmsg_is?(:SOCKET, :RIGHTS).should == false
end
- it 'raises SocketError when comparign with :IPV6 and :RIGHTS' do
- lambda { @data.cmsg_is?(:IPV6, :RIGHTS) }.should raise_error(SocketError)
+ it 'raises SocketError when comparing with :IPV6 and :RIGHTS' do
+ -> { @data.cmsg_is?(:IPV6, :RIGHTS) }.should.raise(SocketError)
end
end
end