Sha256: 6291a81dee0d7c1fd8bdff4710bf4810f229b094e155fc9306b3b84be59f8fe7
Contents?: true
Size: 945 Bytes
Versions: 11
Compression:
Stored size: 945 Bytes
Contents
require 'pio' describe Pio::Type::OpenFlow::PhyPort do describe '.new' do When(:phy_port) do Pio::Type::OpenFlow::PhyPort.new(port_no: 1, hardware_address: '11:22:33:44:55:66', name: 'port123', config: [:port_down], state: [:link_down], curr: [:port_10gb_fd, :port_copper]) end Then { phy_port.port_no == 1 } Then { phy_port.hardware_address == '11:22:33:44:55:66' } Then { phy_port.name == 'port123' } Then { phy_port.config == [:port_down] } Then { phy_port.state == [:link_down] } Then { phy_port.curr == [:port_10gb_fd, :port_copper] } Then { phy_port.advertised.empty? } Then { phy_port.supported.empty? } Then { phy_port.peer.empty? } Then { phy_port.to_binary_s.length > 0 } end end
Version data entries
11 entries across 11 versions & 1 rubygems