Created
February 3, 2012 04:20
-
-
Save mgreenly/1727873 to your computer and use it in GitHub Desktop.
binary paths in integration tests
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
| Then /^I should see an error$/ do | |
| page.should have_selector('div.error') | |
| end | |
| Then /^I should not see any errors$/ do | |
| page.should have_no_selector('div.error') | |
| end |
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
| Feature: user creates foo with bar | |
| Background: | |
| Given I am a user | |
| And I am logged in | |
| Scenario: user fails to create a foo | |
| Given I'm on the "new foo" page | |
| When I submit invalid foo details | |
| Then I should see an error | |
| Scenario: user sucessfully creates a foo | |
| Given I'm on the "new foo" page | |
| When I submit valid foo details | |
| Then I should not see any errors | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment