Sha256: 291e85f12482d1ab2eca55b136f8a9d46ee3e915aa074d303dab06e463ac9497
Contents?: true
Size: 571 Bytes
Versions: 17
Compression:
Stored size: 571 Bytes
Contents
require 'pio/set_ip_addr' describe Pio::SetIpDstAddr do describe '.new' do context "with '1.2.3.4'" do When(:set_ip_dst_addr) { Pio::SetIpDstAddr.new('1.2.3.4') } describe '#ip_address' do Then { set_ip_dst_addr.ip_address == '1.2.3.4' } end describe '#type' do Then { set_ip_dst_addr.type == 7 } end describe '#message_length' do Then { set_ip_dst_addr.message_length == 8 } end describe '#to_binary' do Then { set_ip_dst_addr.to_binary.length == 8 } end end end end
Version data entries
17 entries across 17 versions & 1 rubygems