Skip to content

Instantly share code, notes, and snippets.

@adamlogic
Created December 23, 2010 16:16
Show Gist options
  • Select an option

  • Save adamlogic/753192 to your computer and use it in GitHub Desktop.

Select an option

Save adamlogic/753192 to your computer and use it in GitHub Desktop.
Scenario: Filter by controller
Given I am on the initial page
When I filter results for the "users" controller
Then all entries in the summary list should be for the "users" controller
Given /^I am on the initial page$/ do
visit '/'
end
When /^I filter results for the "([^"]*)" controller$/ do |controller|
fill_in 'Controller', :with => controller
click 'Update Results'
end
Then /^all entries in the summary list should be for the "([^"]*)" controller$/ do |controller|
page.all('#summaries tr').each { |row| row.text.should include(controller) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment