Sha256: 7b57a9413cc86b45cfc12e00b07701ec3045f401c1b9d3716a735b072b8dc761
Contents?: true
Size: 601 Bytes
Versions: 3
Compression:
Stored size: 601 Bytes
Contents
require 'pio/set_ip_address' describe Pio::SetIpSourceAddress do describe '.new' do context "with '1.2.3.4'" do When(:set_ip_source_addr) { Pio::SetIpSourceAddress.new('1.2.3.4') } describe '#ip_address' do Then { set_ip_source_addr.ip_address == '1.2.3.4' } end describe '#type' do Then { set_ip_source_addr.type == 6 } end describe '#message_length' do Then { set_ip_source_addr.message_length == 8 } end describe '#to_binary' do Then { set_ip_source_addr.to_binary.length == 8 } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pio-0.21.0 | spec/pio/set_ip_source_address_spec.rb |
pio-0.20.1 | spec/pio/set_ip_source_address_spec.rb |
pio-0.20.0 | spec/pio/set_ip_source_address_spec.rb |