Skip to content

Instantly share code, notes, and snippets.

@bdunn313
Created December 4, 2012 02:13
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdunn313/4199906 to your computer and use it in GitHub Desktop.
Save bdunn313/4199906 to your computer and use it in GitHub Desktop.
Aruba Cucumber Step Definition Reference

Aruba Cucmber Step Definition Reference

This is a short list of all of Aruba's different Cucumber step definitions that are available.

Givens

  1. Given /The default aruba timeout is (\d+) seconds/
  2. Given /^I'm using a clean gemset "([^"]*)"$/
  3. Given /^a directory named "([^"]*)"$/
  4. Given /^a file named "([^"]*)" with:$/
  5. Given /^a (\d+) byte file named "([^"]*)"$/
  6. Given /^an empty file named "([^"]*)"$/

Whens

  1. When /^I write to "([^"]*)" with:$/
  2. When /^I overwrite "([^"]*)" with:$/
  3. When /^I append to "([^"]*)" with:$/
  4. When /^I append to "([^"]*)" with "([^"]*)"$/
  5. When /^I remove the file "([^"]*)"$/
  6. When /^I cd to "([^"]*)"$/
  7. When /^I run "(.*)"$/ (Depreciated. Use #8 below instead.)
  8. When /^I run ([^]*)$/`
  9. When /^I successfully run "(.*)"$/ (Depreciated. Use #10 below instead.)
  10. When /^I successfully run (.*?)(?: for up to (\d+) seconds)?$/
  11. When /^I run "([^"]*)" interactively$/ (Depreciated. User #12 below instead.)
  12. When /^I run ([^]*) interactively$/`
  13. When /^I type "([^"]*)"$/
  14. When /^I wait for (?:output|stdout) to contain "([^"]*)"$/

Thens

  1. Then /^the output should contain "([^"]*)"$/
  2. Then /^the output from "([^"]*)" should contain "([^"]*)"$/
  3. Then /^the output from "([^"]*)" should not contain "([^"]*)"$/
  4. Then /^the output should not contain "([^"]*)"$/
  5. Then /^the output should contain:$/
  6. Then /^the output should not contain:$/
  7. Then /^the output(?: from "(.*?)")? should contain exactly "(.*?)"$/
  8. Then /^the output(?: from "(.*?)")? should contain exactly:$/
  9. Then /^the output should match \/([^\/]*)\/$/
  10. Then /^the output should match:$/
  11. Then /^the output should not match \/([^\/]*)\/$/
  12. Then /^the output should not match:$/
  13. Then /^the exit status should be (\d+)$/
  14. Then /^the exit status should not be (\d+)$/
  15. Then /^it should (pass|fail) with:$/
  16. Then /^it should (pass|fail) with exactly:$/
  17. Then /^it should (pass|fail) with regexp?:$/
  18. Then /^the stderr(?: from "(.*?)")? should contain( exactly)? "(.*?)"$/
  19. Then /^the stderr(?: from "(.*?)")? should contain( exactly)?:$/
  20. Then /^the stdout(?: from "(.*?)")? should contain( exactly)? "(.*?)"$/
  21. Then /^the stdout(?: from "(.*?)")? should contain( exactly)?:$/
  22. Then /^the stderr should not contain "([^"]*)"$/
  23. Then /^the stderr should not contain:$/
  24. Then /^the (stderr|stdout) should not contain anything$/
  25. Then /^the stdout should not contain "([^"]*)"$/
  26. Then /^the stdout should not contain:$/
  27. Then /^the stdout from "([^"]*)" should not contain "([^"]*)"$/
  28. Then /^the stderr from "([^"]*)" should not contain "([^"]*)"$/
  29. Then /^the file "([^"]*)" should not exist$/
  30. Then /^the following files should exist:$/
  31. Then /^the following files should not exist:$/
  32. Then /^a file named "([^"]*)" should exist$/
  33. Then /^a file named "([^"]*)" should not exist$/
  34. Then /^a (\d+) byte file named "([^"]*)" should exist$/
  35. Then /^the following directories should exist:$/
  36. Then /^the following directories should not exist:$/
  37. Then /^a directory named "([^"]*)" should exist$/
  38. Then /^a directory named "([^"]*)" should not exist$/
  39. Then /^the file "([^"]*)" should contain "([^"]*)"$/
  40. Then /^the file "([^"]*)" should not contain "([^"]*)"$/
  41. Then /^the file "([^"]*)" should contain:$/
  42. Then /^the file "([^"]*)" should contain exactly:$/
  43. Then /^the file "([^"]*)" should match \/([^\/]*)\/$/
  44. Then /^the file "([^"]*)" should not match \/([^\/]*)\/$/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment