Sha256: 0371264d8bf85157bfef40d62a7219a65ff28c0d4a780d118b240f2b18fb88a9

Contents?: true

Size: 350 Bytes

Versions: 125

Compression:

Stored size: 350 Bytes

Contents

RSpec::Matchers.define :have_network_interface do |network_interface_id|
  match do |type|
    type.has_network_interface?(network_interface_id, @device_index)
  end

  chain :device_index do |device_index|
    @device_index = device_index
  end

  (0..10).each do |idx|
    chain "as_eth#{idx}".to_sym do
      @device_index = idx
    end
  end
end

Version data entries

125 entries across 125 versions & 4 rubygems

Version Path
awspec-1.25.1 lib/awspec/matcher/have_network_interface.rb
awspec-1.25.0 lib/awspec/matcher/have_network_interface.rb
awspec-1.24.4 lib/awspec/matcher/have_network_interface.rb
awspec-1.24.3 lib/awspec/matcher/have_network_interface.rb
awspec-1.24.2 lib/awspec/matcher/have_network_interface.rb
awspec-1.24.1 lib/awspec/matcher/have_network_interface.rb
awspec-1.24.0 lib/awspec/matcher/have_network_interface.rb
awspec-1.23.0 lib/awspec/matcher/have_network_interface.rb
awspec-1.22.1 lib/awspec/matcher/have_network_interface.rb
awspec-1.22.0 lib/awspec/matcher/have_network_interface.rb
awspec-1.21.1 lib/awspec/matcher/have_network_interface.rb
awspec-1.21.0 lib/awspec/matcher/have_network_interface.rb
awspec-1.20.0 lib/awspec/matcher/have_network_interface.rb
awspec-1.19.2 lib/awspec/matcher/have_network_interface.rb
awspec-1.19.1 lib/awspec/matcher/have_network_interface.rb
awspec-1.19.0 lib/awspec/matcher/have_network_interface.rb
cthiesfork-awspec-1.2.4 lib/awspec/matcher/have_network_interface.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/matcher/have_network_interface.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/matcher/have_network_interface.rb
awspec-1.18.6 lib/awspec/matcher/have_network_interface.rb