mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@8cafaa5
This commit is contained in:
parent
1b377b32c8
commit
2e32b919b4
35 changed files with 832 additions and 10 deletions
|
@ -51,6 +51,13 @@ describe 'UDPSocket#recvfrom_nonblock' do
|
|||
@server.recvfrom_nonblock(1).should be_an_instance_of(Array)
|
||||
end
|
||||
|
||||
it 'writes the data to the buffer when one is present' do
|
||||
buffer = "".b
|
||||
IO.select([@server])
|
||||
@server.recvfrom_nonblock(1, 0, buffer)
|
||||
buffer.should == 'h'
|
||||
end
|
||||
|
||||
describe 'the returned Array' do
|
||||
before do
|
||||
IO.select([@server])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue