Sha256: 548adcc63d17fe5f9286746ccc31e0010ea79cac61c8c66353d07296d1316766

Contents?: true

Size: 474 Bytes

Versions: 34

Compression:

Stored size: 474 Bytes

Contents

shared_examples_for 'support default gateway matcher' do
  describe 'default_gateway' do
    before :all do
      RSpec.configure do |c|
        c.stdout = "default via 192.168.1.1 dev eth1 \r\n"
      end
    end

    describe default_gateway do
      its(:ipaddress) { should eq '192.168.1.1' }
      its(:interface) { should eq 'eth1'        }

      its(:ipaddress) { should_not eq '192.168.1.2' }
      its(:interface) { should_not eq 'eth0'        }
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
serverspec-0.6.12 spec/support/shared_default_gateway_examples.rb
serverspec-0.6.11 spec/support/shared_default_gateway_examples.rb
serverspec-0.6.10 spec/support/shared_default_gateway_examples.rb
serverspec-0.6.9 spec/support/shared_default_gateway_examples.rb
serverspec-0.6.8 spec/support/shared_default_gateway_examples.rb
serverspec-0.6.7 spec/support/shared_default_gateway_examples.rb
serverspec-0.6.6 spec/support/shared_default_gateway_examples.rb
serverspec-0.6.5 spec/support/shared_default_gateway_examples.rb
serverspec-0.6.4 spec/support/shared_default_gateway_examples.rb
serverspec-0.6.3 spec/support/shared_default_gateway_examples.rb
serverspec-0.6.2 spec/support/shared_default_gateway_examples.rb
serverspec-0.6.1 spec/support/shared_default_gateway_examples.rb
serverspec-0.6.0 spec/support/shared_default_gateway_examples.rb
serverspec-0.5.8 spec/support/shared_default_gateway_examples.rb
serverspec-0.5.7 spec/support/shared_default_gateway_examples.rb
serverspec-0.5.6 spec/support/shared_default_gateway_examples.rb
serverspec-0.5.5 spec/support/shared_default_gateway_examples.rb
serverspec-0.5.4 spec/support/shared_default_gateway_examples.rb
serverspec-0.5.3 spec/support/shared_default_gateway_examples.rb
serverspec-0.5.2 spec/support/shared_default_gateway_examples.rb