spec/redhat/routing_table_spec.rb in serverspec-0.9.4 vs spec/redhat/routing_table_spec.rb in serverspec-0.9.5
- old
+ new
@@ -1,7 +1,9 @@
require 'spec_helper'
-include Serverspec::Helper::RedHat
+RSpec.configure do |c|
+ c.os = 'RedHat'
+end
describe routing_table do
let(:stdout) { "192.168.100.0/24 dev eth1 proto kernel scope link src 192.168.100.10 \r\ndefault via 192.168.100.1 dev eth0 \r\n" }
it { should have_entry( :destination => '192.168.100.0/24' ) }
its(:command) { should eq "ip route | grep -E '^192.168.100.0/24 |^default '" }