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-0.87.0 lib/awspec/matcher/have_network_interface.rb
awspec-0.86.0 lib/awspec/matcher/have_network_interface.rb
cmonson_2ndwatch_awspec-0.85.4 lib/awspec/matcher/have_network_interface.rb
awspec-0.85.3 lib/awspec/matcher/have_network_interface.rb
cmonson_2ndwatch_awspec-0.85.3 lib/awspec/matcher/have_network_interface.rb
awspec-0.85.2 lib/awspec/matcher/have_network_interface.rb
awspec-0.85.1 lib/awspec/matcher/have_network_interface.rb
awspec-0.85.0 lib/awspec/matcher/have_network_interface.rb
awspec-0.84.1 lib/awspec/matcher/have_network_interface.rb
awspec-0.84.0 lib/awspec/matcher/have_network_interface.rb
awspec-0.83.0 lib/awspec/matcher/have_network_interface.rb
awspec-0.82.3 lib/awspec/matcher/have_network_interface.rb
awspec-0.82.2 lib/awspec/matcher/have_network_interface.rb
awspec-0.82.1 lib/awspec/matcher/have_network_interface.rb
awspec-0.82.0 lib/awspec/matcher/have_network_interface.rb
awspec-0.81.1 lib/awspec/matcher/have_network_interface.rb
awspec-0.81.0 lib/awspec/matcher/have_network_interface.rb
awspec-0.80.1 lib/awspec/matcher/have_network_interface.rb
awspec-0.80.0 lib/awspec/matcher/have_network_interface.rb
awspec-0.79.2 lib/awspec/matcher/have_network_interface.rb