Sha256: 8dfff480f03b16777f27a4e863dda12c73b541f1577d92d7873691c079ba6194

Contents?: true

Size: 571 Bytes

Versions: 17

Compression:

Stored size: 571 Bytes

Contents

require 'pio/set_ip_addr'

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

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

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

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

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pio-0.19.0 spec/pio/set_ip_src_addr_spec.rb
pio-0.18.2 spec/pio/set_ip_src_addr_spec.rb
pio-0.18.1 spec/pio/set_ip_src_addr_spec.rb
pio-0.18.0 spec/pio/set_ip_src_addr_spec.rb
pio-0.17.0 spec/pio/set_ip_src_addr_spec.rb
pio-0.16.0 spec/pio/set_ip_src_addr_spec.rb
pio-0.15.2 spec/pio/set_ip_src_addr_spec.rb
pio-0.15.1 spec/pio/set_ip_src_addr_spec.rb
pio-0.15.0 spec/pio/set_ip_src_addr_spec.rb
pio-0.14.0 spec/pio/set_ip_src_addr_spec.rb
pio-0.13.0 spec/pio/set_ip_src_addr_spec.rb
pio-0.12.0 spec/pio/set_ip_src_addr_spec.rb
pio-0.11.2 spec/pio/set_ip_src_addr_spec.rb
pio-0.11.1 spec/pio/set_ip_src_addr_spec.rb
pio-0.11.0 spec/pio/set_ip_src_addr_spec.rb
pio-0.10.1 spec/pio/set_ip_src_addr_spec.rb
pio-0.10.0 spec/pio/set_ip_src_addr_spec.rb