Sha256: 88f9c10ccedb48dfb75123839a91ffcedeebb5474db6cb4af869569e45545161
Contents?: true
Size: 845 Bytes
Versions: 3
Compression:
Stored size: 845 Bytes
Contents
require 'pio/set_ether_address' describe Pio::SetEtherSourceAddr do describe '.new' do Given(:set_ether_source_address) do Pio::SetEtherSourceAddr.new(mac_address) end context "with '11:22:33:44:55:66'" do When(:mac_address) { '11:22:33:44:55:66' } Then { set_ether_source_address.mac_address == '11:22:33:44:55:66' } describe '#to_binary' do Then { set_ether_source_address.to_binary.length == 16 } end end context 'with 0x112233445566' do When(:mac_address) { 0x112233445566 } Then { set_ether_source_address.mac_address == '11:22:33:44:55:66' } end context "with Pio::Mac.new('11:22:33:44:55:66')" do When(:mac_address) { Pio::Mac.new('11:22:33:44:55:66') } Then { set_ether_source_address.mac_address == '11:22:33:44:55:66' } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pio-0.21.0 | spec/pio/set_ether_source_address_spec.rb |
pio-0.20.1 | spec/pio/set_ether_source_address_spec.rb |
pio-0.20.0 | spec/pio/set_ether_source_address_spec.rb |