diff options
Diffstat (limited to 'cucumber/features/step_definitions')
-rw-r--r-- | cucumber/features/step_definitions/common_steps.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb index 6f47bb93..0cebc1a3 100644 --- a/cucumber/features/step_definitions/common_steps.rb +++ b/cucumber/features/step_definitions/common_steps.rb @@ -212,6 +212,11 @@ When /^I execute "([^"]*)"$/ do |cmd| info_log($vm.execute(cmd)) end +When /^running "([^"]*)" (.*)$/ do |cmd, outcome| + result = $vm.execute(cmd) + assert(result.success? == ('succeeds' == outcome), + "Attempting to run '#{cmd}' did not give the expected outcome of: #{outcome}\n" + result.to_s ) +end Given /^I start Tails( from DVD)?( with network unplugged)?( and I login)?$/ do |dvd_boot, network_unplugged, do_login| step "the computer is set to boot from the Tails DVD" if dvd_boot |