Sha256: 8566cecc4801e85cddc6cf7b91b242a98377be5bb0b7ddaad38eaa2d83625661

Contents?: true

Size: 485 Bytes

Versions: 8

Compression:

Stored size: 485 Bytes

Contents

require 'pio/open_flow10/strip_vlan_header'

describe Pio::StripVlanHeader do
  Given(:strip_vlan_header) { Pio::StripVlanHeader.new }

  describe '#type' do
    When(:type) { strip_vlan_header.type }
    Then { type == 3 }
  end

  describe '#message_length' do
    When(:message_length) { strip_vlan_header.message_length }
    Then { message_length == 8 }
  end

  describe '#to_binary' do
    When(:binary) { strip_vlan_header.to_binary }
    Then { binary.length == 8 }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pio-0.25.0 spec/pio/open_flow10/strip_vlan_header_spec.rb
pio-0.24.2 spec/pio/open_flow10/strip_vlan_header_spec.rb
pio-0.24.1 spec/pio/open_flow10/strip_vlan_header_spec.rb
pio-0.24.0 spec/pio/open_flow10/strip_vlan_header_spec.rb
pio-0.23.1 spec/pio/open_flow10/strip_vlan_header_spec.rb
pio-0.23.0 spec/pio/open_flow10/strip_vlan_header_spec.rb
pio-0.22.0 spec/pio/open_flow10/strip_vlan_header_spec.rb
pio-0.21.1 spec/pio/open_flow10/strip_vlan_header_spec.rb