Sha256: 5e8ea83cf238e1d9f6fc2cad1b0ea56e3d39d3592198c868e428eda2d0890b7f

Contents?: true

Size: 337 Bytes

Versions: 6

Compression:

Stored size: 337 Bytes

Contents

require 'spec_helper'

include Specinfra::Helper::RedHat

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(:interface) { should eq 'eth1' }

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta8 spec/type/default_gateway_spec.rb
serverspec-2.0.0.beta7 spec/type/default_gateway_spec.rb
serverspec-2.0.0.beta6 spec/type/default_gateway_spec.rb
serverspec-2.0.0.beta5 spec/type/default_gateway_spec.rb
serverspec-2.0.0.beta4 spec/type/default_gateway_spec.rb
serverspec-2.0.0.beta3 spec/type/default_gateway_spec.rb