aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/library/socket/basicsocket/recv_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/socket/basicsocket/recv_spec.rb')
-rw-r--r--spec/ruby/library/socket/basicsocket/recv_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/library/socket/basicsocket/recv_spec.rb b/spec/ruby/library/socket/basicsocket/recv_spec.rb
index a277dc2d97..b6ccda5d00 100644
--- a/spec/ruby/library/socket/basicsocket/recv_spec.rb
+++ b/spec/ruby/library/socket/basicsocket/recv_spec.rb
@@ -107,7 +107,7 @@ describe 'BasicSocket#recv' do
describe 'using an unbound socket' do
it 'blocks the caller' do
- lambda { @server.recv(4) }.should block_caller
+ -> { @server.recv(4) }.should block_caller
end
end
@@ -118,7 +118,7 @@ describe 'BasicSocket#recv' do
describe 'without any data available' do
it 'blocks the caller' do
- lambda { @server.recv(4) }.should block_caller
+ -> { @server.recv(4) }.should block_caller
end
end
@@ -144,7 +144,7 @@ describe 'BasicSocket#recv' do
@server.recv(2).should == 'he'
- lambda { @server.recv(4) }.should block_caller
+ -> { @server.recv(4) }.should block_caller
end
it 'takes a peek at the data when using the MSG_PEEK flag' do