From e6f7ee9ee9f6a9c32b26f778ce4667171b91a576 Mon Sep 17 00:00:00 2001 From: Gosuke Miyashita Date: Sun, 6 Apr 2014 21:25:42 +0900 Subject: [PATCH] Modify specs for serverspec/specinfra#79 --- spec/aix/host_spec.rb | 4 ++-- spec/darwin/host_spec.rb | 4 ++-- spec/debian/host_spec.rb | 4 ++-- spec/freebsd/host_spec.rb | 4 ++-- spec/gentoo/host_spec.rb | 4 ++-- spec/plamo/host_spec.rb | 4 ++-- spec/redhat/host_spec.rb | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/spec/aix/host_spec.rb b/spec/aix/host_spec.rb index f4738075..8a68eb1b 100644 --- a/spec/aix/host_spec.rb +++ b/spec/aix/host_spec.rb @@ -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 @@ -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 diff --git a/spec/darwin/host_spec.rb b/spec/darwin/host_spec.rb index 252ac137..bcfa64af 100644 --- a/spec/darwin/host_spec.rb +++ b/spec/darwin/host_spec.rb @@ -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 @@ -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 diff --git a/spec/debian/host_spec.rb b/spec/debian/host_spec.rb index 240f67b8..be5bb722 100644 --- a/spec/debian/host_spec.rb +++ b/spec/debian/host_spec.rb @@ -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 @@ -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 diff --git a/spec/freebsd/host_spec.rb b/spec/freebsd/host_spec.rb index af79c0b3..586ee586 100644 --- a/spec/freebsd/host_spec.rb +++ b/spec/freebsd/host_spec.rb @@ -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 @@ -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 diff --git a/spec/gentoo/host_spec.rb b/spec/gentoo/host_spec.rb index b1677a65..173e2fe1 100644 --- a/spec/gentoo/host_spec.rb +++ b/spec/gentoo/host_spec.rb @@ -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 @@ -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 diff --git a/spec/plamo/host_spec.rb b/spec/plamo/host_spec.rb index b7084896..6f6d0747 100644 --- a/spec/plamo/host_spec.rb +++ b/spec/plamo/host_spec.rb @@ -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 @@ -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 diff --git a/spec/redhat/host_spec.rb b/spec/redhat/host_spec.rb index 854ad9a0..03363dde 100644 --- a/spec/redhat/host_spec.rb +++ b/spec/redhat/host_spec.rb @@ -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 @@ -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