summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/socket/gethostbyaddr_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/socket/socket/gethostbyaddr_spec.rb')
-rw-r--r--spec/ruby/library/socket/socket/gethostbyaddr_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/socket/socket/gethostbyaddr_spec.rb b/spec/ruby/library/socket/socket/gethostbyaddr_spec.rb
index 639a318132..5d97341103 100644
--- a/spec/ruby/library/socket/socket/gethostbyaddr_spec.rb
+++ b/spec/ruby/library/socket/socket/gethostbyaddr_spec.rb
@@ -57,7 +57,7 @@ describe 'Socket.gethostbyaddr' do
end
it 'raises SocketError when the address is not supported by the family' do
- lambda { Socket.gethostbyaddr(@addr, :INET6) }.should raise_error(SocketError)
+ -> { Socket.gethostbyaddr(@addr, :INET6) }.should raise_error(SocketError)
end
end
end
@@ -115,7 +115,7 @@ describe 'Socket.gethostbyaddr' do
platform_is_not :windows do
it 'raises SocketError when the address is not supported by the family' do
- lambda { Socket.gethostbyaddr(@addr, :INET) }.should raise_error(SocketError)
+ -> { Socket.gethostbyaddr(@addr, :INET) }.should raise_error(SocketError)
end
end
end