Sha256: 49f38965b1188ca94781113b6c99c88c1fca1943b7867c680d8546ebc2d48865
Contents?: true
Size: 665 Bytes
Versions: 8
Compression:
Stored size: 665 Bytes
Contents
require 'pio/open_flow10/set_ip_address' describe Pio::SetIpDestinationAddress do describe '.new' do context "with '1.2.3.4'" do When(:set_ip_destination_addr) do Pio::SetIpDestinationAddress.new('1.2.3.4') end describe '#ip_address' do Then { set_ip_destination_addr.ip_address == '1.2.3.4' } end describe '#type' do Then { set_ip_destination_addr.type == 7 } end describe '#message_length' do Then { set_ip_destination_addr.message_length == 8 } end describe '#to_binary' do Then { set_ip_destination_addr.to_binary.length == 8 } end end end end
Version data entries
8 entries across 8 versions & 1 rubygems