Skip to content

Instantly share code, notes, and snippets.

@tibastral
Created December 5, 2009 17:20
Show Gist options
  • Save tibastral/249768 to your computer and use it in GitHub Desktop.
Save tibastral/249768 to your computer and use it in GitHub Desktop.
#in my step definitions
Then /^I should see in this order the following elements:$/ do |table|
matched_vals = response.body =~ Regexp.new(table.raw.join(".*"), Regexp::MULTILINE)
assert !matched_vals.nil?
end
#in my feature:
Then I should see in this order the following elements:
| primo |
| secondo |
| tierco |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment