spec/darwin/host_spec.rb in serverspec-1.1.0 vs spec/darwin/host_spec.rb in serverspec-1.2.0

- old
+ new

@@ -29,19 +29,19 @@ it { should_not be_resolvable.by('dns') } end 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 it { should_not be_reachable } end 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 it { should be_reachable.with(:proto => "tcp", :port => 22, :timeout=> 1) } its(:command) { should eq "nc -vvvvzt 127.0.0.1 22 -w 1" }