Sha256: e79402131538c023d76cf2b51c28be3f1bb281a3d7096da679992ea4a710fdfb
Contents?: true
Size: 857 Bytes
Versions: 8
Compression:
Stored size: 857 Bytes
Contents
require 'pio/open_flow10/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
8 entries across 8 versions & 1 rubygems