Sha256: f9f0efa5a4bf571642ca85b7b07b0d7eca504014becdeb13e7778ab79870ae8e

Contents?: true

Size: 334 Bytes

Versions: 20

Compression:

Stored size: 334 Bytes

Contents

# TODO: this has only been tested on Solaris, so it should be changed to
#       handle other operating systems too
When /^I ping "([^\"]*)"$/ do |host|
  @result = system("ping #{host} > /dev/null 2>&1")
end

Then /^it should respond$/ do
  @result.should be_true
end

Then /^it should not respond$/ do
  @result.should be_false
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
cucumber-nagios-0.9.2 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.9.0 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.8.11 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.8.10 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.8.9 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.8.8 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.8.7 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.8.6 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.8.5 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.8.4 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.8.3 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.8.2 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.8.0 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.7.6 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.7.5 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.7.4 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.7.3 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.7.2 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.7.1 lib/cucumber/nagios/steps/ping_steps.rb
cucumber-nagios-0.7.0 lib/cucumber/nagios/steps/ping_steps.rb