mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@ccf0d85
This commit is contained in:
parent
afcbb501ac
commit
b9f34062f0
28 changed files with 692 additions and 31 deletions
10
spec/ruby/library/socket/basicsocket/local_address_spec.rb
Normal file
10
spec/ruby/library/socket/basicsocket/local_address_spec.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
require_relative '../spec_helper'
|
||||
require_relative '../shared/address'
|
||||
|
||||
describe 'BasicSocket#local_address' do
|
||||
it_behaves_like :socket_local_remote_address, :local_address, -> socket {
|
||||
a2 = BasicSocket.for_fd(socket.fileno)
|
||||
a2.autoclose = false
|
||||
a2.local_address
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue