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

Version Path
pio-0.25.0 spec/pio/open_flow/phy_port_spec.rb
pio-0.24.2 spec/pio/open_flow/phy_port_spec.rb
pio-0.24.1 spec/pio/open_flow/phy_port_spec.rb
pio-0.24.0 spec/pio/open_flow/phy_port_spec.rb
pio-0.23.1 spec/pio/open_flow/phy_port_spec.rb
pio-0.23.0 spec/pio/open_flow/phy_port_spec.rb
pio-0.22.0 spec/pio/open_flow/phy_port_spec.rb
pio-0.21.1 spec/pio/open_flow/phy_port_spec.rb
pio-0.21.0 spec/pio/open_flow/phy_port_spec.rb
pio-0.20.1 spec/pio/open_flow/phy_port_spec.rb
pio-0.20.0 spec/pio/open_flow/phy_port_spec.rb
pio-0.19.0 spec/pio/open_flow/phy_port_spec.rb
pio-0.18.2 spec/pio/open_flow/phy_port_spec.rb
pio-0.18.1 spec/pio/open_flow/phy_port_spec.rb
pio-0.18.0 spec/pio/open_flow/phy_port_spec.rb
pio-0.17.0 spec/pio/open_flow/phy_port_spec.rb
pio-0.16.0 spec/pio/open_flow/phy_port_spec.rb
pio-0.15.2 spec/pio/open_flow/phy_port_spec.rb
pio-0.15.1 spec/pio/open_flow/phy_port_spec.rb