Skip to content

Commit

Permalink
Refactored scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed May 24, 2010
1 parent e16fd30 commit 0141786
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions features/plain/lighthouse_integration.feature
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,16 @@ Feature: Lighthouse integration
Then one item should be saved as parked items

Scenario: We should not be able to save a ticket if the ticket and the body are already in the system
Given we already have a ticket id "39" on the system
Given we have set up the lighthouse resource
And I visit the parking page
When I select "baphled" from "resource_id"
And I fill in "parking_tag" with "feature"
And submit the form
Given we have a tickets that is invalid
Then I should be able to select tickets to add to parking
# Need to refactor so that we have a stubbed version of this ticket, will break once ticket is closed
When I check "lighthouse[ticket_id][]"
And I press "Park"
Then an error message should be displayed
And the flash message "Unable to save tickets" should be displayed

Scenario: We should not save any tickets if one of them is invalid
Expand All @@ -79,5 +78,5 @@ Feature: Lighthouse integration
# Need to refactor so that we have a stubbed version of this ticket, will break once ticket is closed
When I check "lighthouse[ticket_id][]"
And I press "Park"
And an error message should be displayed
And the tickets list should be rendered
Then an error message should be displayed
And the tickets list should be empty

0 comments on commit 0141786

Please sign in to comment.