From 5c276e1cc91c5ab2a41fbf7827af2fed914a2bc0 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sat, 27 Jul 2019 12:40:09 +0200 Subject: Update to ruby/spec@875a09e --- spec/ruby/library/socket/unixserver/accept_nonblock_spec.rb | 2 +- spec/ruby/library/socket/unixserver/accept_spec.rb | 2 +- spec/ruby/library/socket/unixserver/initialize_spec.rb | 2 +- spec/ruby/library/socket/unixserver/sysaccept_spec.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'spec/ruby/library/socket/unixserver') diff --git a/spec/ruby/library/socket/unixserver/accept_nonblock_spec.rb b/spec/ruby/library/socket/unixserver/accept_nonblock_spec.rb index 3ebe38a090..30688b46b6 100644 --- a/spec/ruby/library/socket/unixserver/accept_nonblock_spec.rb +++ b/spec/ruby/library/socket/unixserver/accept_nonblock_spec.rb @@ -49,7 +49,7 @@ with_feature :unix_socket do describe 'without a client' do it 'raises IO::WaitReadable' do - lambda { @server.accept_nonblock }.should raise_error(IO::WaitReadable) + -> { @server.accept_nonblock }.should raise_error(IO::WaitReadable) end end diff --git a/spec/ruby/library/socket/unixserver/accept_spec.rb b/spec/ruby/library/socket/unixserver/accept_spec.rb index a1570f7013..c05fbe7f22 100644 --- a/spec/ruby/library/socket/unixserver/accept_spec.rb +++ b/spec/ruby/library/socket/unixserver/accept_spec.rb @@ -74,7 +74,7 @@ with_feature :unix_socket do describe 'without a client' do it 'blocks the calling thread' do - lambda { @server.accept }.should block_caller + -> { @server.accept }.should block_caller end end diff --git a/spec/ruby/library/socket/unixserver/initialize_spec.rb b/spec/ruby/library/socket/unixserver/initialize_spec.rb index cb186ceb76..0cc49ef1eb 100644 --- a/spec/ruby/library/socket/unixserver/initialize_spec.rb +++ b/spec/ruby/library/socket/unixserver/initialize_spec.rb @@ -22,7 +22,7 @@ with_feature :unix_socket do end it 'raises Errno::EADDRINUSE when the socket is already in use' do - lambda { UNIXServer.new(@path) }.should raise_error(Errno::EADDRINUSE) + -> { UNIXServer.new(@path) }.should raise_error(Errno::EADDRINUSE) end end end diff --git a/spec/ruby/library/socket/unixserver/sysaccept_spec.rb b/spec/ruby/library/socket/unixserver/sysaccept_spec.rb index 65a35c91a9..e59731878a 100644 --- a/spec/ruby/library/socket/unixserver/sysaccept_spec.rb +++ b/spec/ruby/library/socket/unixserver/sysaccept_spec.rb @@ -16,7 +16,7 @@ with_feature :unix_socket do describe 'without a client' do it 'blocks the calling thread' do - lambda { @server.sysaccept }.should block_caller + -> { @server.sysaccept }.should block_caller end end -- cgit v1.2.3