Sha256: 86e363197d03d985046d98a6bb2b63383a3a4ef4b5c77bf9ceab51771ed0e8a1

Contents?: true

Size: 613 Bytes

Versions: 8

Compression:

Stored size: 613 Bytes

Contents

require 'pio/open_flow10/set_ip_address'

describe Pio::SetIpSourceAddress do
  describe '.new' do
    context "with '1.2.3.4'" do
      When(:set_ip_source_addr) { Pio::SetIpSourceAddress.new('1.2.3.4') }

      describe '#ip_address' do
        Then { set_ip_source_addr.ip_address == '1.2.3.4' }
      end

      describe '#type' do
        Then { set_ip_source_addr.type == 6 }
      end

      describe '#message_length' do
        Then { set_ip_source_addr.message_length == 8 }
      end

      describe '#to_binary' do
        Then { set_ip_source_addr.to_binary.length == 8 }
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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