Sha256: 78f749c74399d0b8e580ae9f0f436a85af8b6cc363aa3c94a5e5b00d755f7bd5

Contents?: true

Size: 313 Bytes

Versions: 5

Compression:

Stored size: 313 Bytes

Contents

RSpec::Matchers.define :be_default_gateway do
  match do |ip_address|
    backend.check_routing_table(
      {
        :destination => 'default',
        :gateway     => ip_address,
        :interface   => @interface
      }
    )
  end
  chain :with_interface do |interface|
    @interface = interface
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-0.5.8 lib/serverspec/matchers/be_default_gateway.rb
serverspec-0.5.7 lib/serverspec/matchers/be_default_gateway.rb
serverspec-0.5.6 lib/serverspec/matchers/be_default_gateway.rb
serverspec-0.5.5 lib/serverspec/matchers/be_default_gateway.rb
serverspec-0.5.4 lib/serverspec/matchers/be_default_gateway.rb