Skip to content

Commit

Permalink
Modify specs for mizzy/specinfra#79
Browse files Browse the repository at this point in the history
  • Loading branch information
mizzy committed Apr 6, 2014
1 parent 882ae05 commit e6f7ee9
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions spec/aix/host_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

describe host('127.0.0.1') do
it { should be_reachable }
its(:command) { should eq "ping -n 127.0.0.1 -w 5 -c 2" }
its(:command) { should eq "ping -w 5 -c 2 -n 127.0.0.1" }
end

describe host('invalid-host') do
Expand All @@ -40,7 +40,7 @@

describe host('127.0.0.1') do
it { should be_reachable.with(:proto => "icmp", :timeout=> 1) }
its(:command) { should eq "ping -n 127.0.0.1 -w 1 -c 2" }
its(:command) { should eq "ping -w 1 -c 2 -n 127.0.0.1" }
end

describe host('127.0.0.1') do
Expand Down
4 changes: 2 additions & 2 deletions spec/darwin/host_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

describe host('127.0.0.1') do
it { should be_reachable }
its(:command) { should eq "ping -n 127.0.0.1 -w 5 -c 2" }
its(:command) { should eq "ping -w 5 -c 2 -n 127.0.0.1" }
end

describe host('invalid-host') do
Expand All @@ -40,7 +40,7 @@

describe host('127.0.0.1') do
it { should be_reachable.with(:proto => "icmp", :timeout=> 1) }
its(:command) { should eq "ping -n 127.0.0.1 -w 1 -c 2" }
its(:command) { should eq "ping -w 1 -c 2 -n 127.0.0.1" }
end

describe host('127.0.0.1') do
Expand Down
4 changes: 2 additions & 2 deletions spec/debian/host_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

describe host('127.0.0.1') do
it { should be_reachable }
its(:command) { should eq "ping -n 127.0.0.1 -w 5 -c 2" }
its(:command) { should eq "ping -w 5 -c 2 -n 127.0.0.1" }
end

describe host('invalid-host') do
Expand All @@ -40,7 +40,7 @@

describe host('127.0.0.1') do
it { should be_reachable.with(:proto => "icmp", :timeout=> 1) }
its(:command) { should eq "ping -n 127.0.0.1 -w 1 -c 2" }
its(:command) { should eq "ping -w 1 -c 2 -n 127.0.0.1" }
end

describe host('127.0.0.1') do
Expand Down
4 changes: 2 additions & 2 deletions spec/freebsd/host_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

describe host('127.0.0.1') do
it { should be_reachable }
its(:command) { should eq "ping -n 127.0.0.1 -w 5 -c 2" }
its(:command) { should eq "ping -w 5 -c 2 -n 127.0.0.1" }
end

describe host('invalid-host') do
Expand All @@ -40,7 +40,7 @@

describe host('127.0.0.1') do
it { should be_reachable.with(:proto => "icmp", :timeout=> 1) }
its(:command) { should eq "ping -n 127.0.0.1 -w 1 -c 2" }
its(:command) { should eq "ping -w 1 -c 2 -n 127.0.0.1" }
end

describe host('127.0.0.1') do
Expand Down
4 changes: 2 additions & 2 deletions spec/gentoo/host_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

describe host('127.0.0.1') do
it { should be_reachable }
its(:command) { should eq "ping -n 127.0.0.1 -w 5 -c 2" }
its(:command) { should eq "ping -w 5 -c 2 -n 127.0.0.1" }
end

describe host('invalid-host') do
Expand All @@ -40,7 +40,7 @@

describe host('127.0.0.1') do
it { should be_reachable.with(:proto => "icmp", :timeout=> 1) }
its(:command) { should eq "ping -n 127.0.0.1 -w 1 -c 2" }
its(:command) { should eq "ping -w 1 -c 2 -n 127.0.0.1" }
end

describe host('127.0.0.1') do
Expand Down
4 changes: 2 additions & 2 deletions spec/plamo/host_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

describe host('127.0.0.1') do
it { should be_reachable }
its(:command) { should eq "ping -n 127.0.0.1 -w 5 -c 2" }
its(:command) { should eq "ping -w 5 -c 2 -n 127.0.0.1" }
end

describe host('invalid-host') do
Expand All @@ -40,7 +40,7 @@

describe host('127.0.0.1') do
it { should be_reachable.with(:proto => "icmp", :timeout=> 1) }
its(:command) { should eq "ping -n 127.0.0.1 -w 1 -c 2" }
its(:command) { should eq "ping -w 1 -c 2 -n 127.0.0.1" }
end

describe host('127.0.0.1') do
Expand Down
4 changes: 2 additions & 2 deletions spec/redhat/host_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

describe host('127.0.0.1') do
it { should be_reachable }
its(:command) { should eq "ping -n 127.0.0.1 -w 5 -c 2" }
its(:command) { should eq "ping -w 5 -c 2 -n 127.0.0.1" }
end

describe host('invalid-host') do
Expand All @@ -40,7 +40,7 @@

describe host('127.0.0.1') do
it { should be_reachable.with(:proto => "icmp", :timeout=> 1) }
its(:command) { should eq "ping -n 127.0.0.1 -w 1 -c 2" }
its(:command) { should eq "ping -w 1 -c 2 -n 127.0.0.1" }
end

describe host('127.0.0.1') do
Expand Down

0 comments on commit e6f7ee9

Please sign in to comment.