1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/library/socket/basicsocket/local_address_spec.rb
2021-10-05 19:41:44 +02:00

10 lines
285 B
Ruby

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