Skip to content

Instantly share code, notes, and snippets.

@joshski
Created March 16, 2010 16:33
Show Gist options
  • Save joshski/334186 to your computer and use it in GitHub Desktop.
Save joshski/334186 to your computer and use it in GitHub Desktop.
> cucumber --version
0.6.3
Scenario Outline: Incorrect Search Output
When I do an invalid search of: "<keywords>"
Then an invalid search result page of "<response>" should not be returned!
Examples:
| keywords | response |
| &^*%$ü%! |'&^*%$%!' could not be interpreted. Please correct the construction and try again. |
Then /^an invalid search result page of "([^\"]*)" should not be returned!$/ do |error_message|
jquery("div.panel-error.big.content").text.should_not include(error_message)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment