summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/addrinfo/unix_path_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/socket/addrinfo/unix_path_spec.rb')
-rw-r--r--spec/ruby/library/socket/addrinfo/unix_path_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/socket/addrinfo/unix_path_spec.rb b/spec/ruby/library/socket/addrinfo/unix_path_spec.rb
index 0f25881724..6bfb56a4ac 100644
--- a/spec/ruby/library/socket/addrinfo/unix_path_spec.rb
+++ b/spec/ruby/library/socket/addrinfo/unix_path_spec.rb
@@ -9,7 +9,7 @@ with_feature :unix_socket do
end
it "raises an exception" do
- lambda { @addrinfo.unix_path }.should raise_error(SocketError)
+ -> { @addrinfo.unix_path }.should raise_error(SocketError)
end
end
@@ -20,7 +20,7 @@ with_feature :unix_socket do
end
it "raises an exception" do
- lambda { @addrinfo.unix_path }.should raise_error(SocketError)
+ -> { @addrinfo.unix_path }.should raise_error(SocketError)
end
end