Sha256: fa7ed61683e5905baeedaad24be663a23c72771f4eae3f51e14964cd6d9b35ea

Contents?: true

Size: 495 Bytes

Versions: 20

Compression:

Stored size: 495 Bytes

Contents

require 'spec_helper'

RSpec.configure do |c|
  c.os = 'FreeBSD'
end

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

20 entries across 20 versions & 1 rubygems

Version Path
serverspec-0.11.1 spec/freebsd/default_gateway_spec.rb
serverspec-0.11.0 spec/freebsd/default_gateway_spec.rb
serverspec-0.10.13 spec/freebsd/default_gateway_spec.rb
serverspec-0.10.12 spec/freebsd/default_gateway_spec.rb
serverspec-0.10.11 spec/freebsd/default_gateway_spec.rb
serverspec-0.10.10 spec/freebsd/default_gateway_spec.rb
serverspec-0.10.9 spec/freebsd/default_gateway_spec.rb
serverspec-0.10.8 spec/freebsd/default_gateway_spec.rb
serverspec-0.10.7 spec/freebsd/default_gateway_spec.rb
serverspec-0.10.6 spec/freebsd/default_gateway_spec.rb
serverspec-0.10.5 spec/freebsd/default_gateway_spec.rb
serverspec-0.10.4 spec/freebsd/default_gateway_spec.rb
serverspec-0.10.3 spec/freebsd/default_gateway_spec.rb
serverspec-0.10.2 spec/freebsd/default_gateway_spec.rb
serverspec-0.10.1 spec/freebsd/default_gateway_spec.rb
serverspec-0.10.0 spec/freebsd/default_gateway_spec.rb
serverspec-0.9.8 spec/freebsd/default_gateway_spec.rb
serverspec-0.9.7 spec/freebsd/default_gateway_spec.rb
serverspec-0.9.6 spec/freebsd/default_gateway_spec.rb
serverspec-0.9.5 spec/freebsd/default_gateway_spec.rb