Skip to content

Instantly share code, notes, and snippets.

@mgreenly
Created February 3, 2012 04:20
Show Gist options
  • Select an option

  • Save mgreenly/1727873 to your computer and use it in GitHub Desktop.

Select an option

Save mgreenly/1727873 to your computer and use it in GitHub Desktop.
binary paths in integration tests
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
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