Sha256: 610ca9594ede043b0bc779f15732628279e7bd968258feb3ab11dedff8f5c703
Contents?: true
Size: 903 Bytes
Versions: 19
Compression:
Stored size: 903 Bytes
Contents
require 'pio' describe Pio::OpenFlow::PhyPort do describe '.new' do When(:phy_port) do Pio::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
19 entries across 19 versions & 1 rubygems