Skip to content

Instantly share code, notes, and snippets.

@aslakhellesoy
Forked from joshski/gist:334186
Created March 18, 2010 06:50
Show Gist options
  • Save aslakhellesoy/336106 to your computer and use it in GitHub Desktop.
Save aslakhellesoy/336106 to your computer and use it in GitHub Desktop.
Feature: foo
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. |
When /^I do an invalid search of: "([^\"]*)"$/ do |q|
q.should == "&^*%$ü%!"
end
Then /^an invalid search result page of "([^\"]*)" should not be returned!$/ do |r|
r.should == "'&^*%$%!' could not be interpreted. Please correct the construction and try again."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment