Sha256: fd04e05a83b29f4e0f0f72b1bad95782e9909ca86d1fe7638ca04cea7a4bc0f0

Contents?: true

Size: 483 Bytes

Versions: 4

Compression:

Stored size: 483 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::Plamo

describe default_gateway do
  let(:stdout) { "default via 192.168.1.1 dev eth1 \r\n" }

  its(:ipaddress) { should eq '192.168.1.1' }
  its(:command) { should eq "ip route | grep -E '^default |^default '" }

  its(:interface) { should eq 'eth1' }
  its(:command) { should eq "ip route | grep -E '^default |^default '" }

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
serverspec-0.11.5 spec/plamo/default_gateway_spec.rb
serverspec-0.11.4 spec/plamo/default_gateway_spec.rb
serverspec-0.11.3 spec/plamo/default_gateway_spec.rb
serverspec-0.11.2 spec/plamo/default_gateway_spec.rb