mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@b65d01f
This commit is contained in:
parent
15d05f8120
commit
6998d75824
186 changed files with 3956 additions and 3339 deletions
|
|
@ -114,6 +114,21 @@ describe 'BasicSocket#recvmsg_nonblock' do
|
|||
end
|
||||
|
||||
platform_is_not :windows do
|
||||
describe 'using a connected but not bound socket' do
|
||||
before do
|
||||
@server = Socket.new(family, :STREAM)
|
||||
end
|
||||
|
||||
after do
|
||||
@server.close
|
||||
end
|
||||
|
||||
it "raises Errno::ENOTCONN" do
|
||||
-> { @server.recvmsg_nonblock }.should raise_error(Errno::ENOTCONN)
|
||||
-> { @server.recvmsg_nonblock(exception: false) }.should raise_error(Errno::ENOTCONN)
|
||||
end
|
||||
end
|
||||
|
||||
describe 'using a connected socket' do
|
||||
before do
|
||||
@client = Socket.new(family, :STREAM)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue