Sha256: f0d8ea8b3436953f502178f29d7099960372a2c15273c23f7b794032ad94b791

Contents?: true

Size: 713 Bytes

Versions: 5

Compression:

Stored size: 713 Bytes

Contents

require 'pio/open_flow10/set_destination_ip_address'

describe Pio::OpenFlow10::SetDestinationIpAddress do
  describe '.new' do
    context "with '1.2.3.4'" do
      When(:set_destination_ip_addr) do
        Pio::OpenFlow10::SetDestinationIpAddress.new('1.2.3.4')
      end

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

      describe '#action_type' do
        Then { set_destination_ip_addr.action_type == 7 }
      end

      describe '#action_length' do
        Then { set_destination_ip_addr.action_length == 8 }
      end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pio-0.30.1 spec/pio/open_flow10/set_destination_ip_address_spec.rb
pio-0.30.0 spec/pio/open_flow10/set_destination_ip_address_spec.rb
pio-0.29.0 spec/pio/open_flow10/set_destination_ip_address_spec.rb
pio-0.28.1 spec/pio/open_flow10/set_destination_ip_address_spec.rb
pio-0.28.0 spec/pio/open_flow10/set_destination_ip_address_spec.rb