Created
December 23, 2010 16:16
-
-
Save adamlogic/753192 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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