Test to see if product backlog contains the right stories

pull/6827/head
Mark Maglana 14 years ago
parent 88bf9e3856
commit 53402c57df
  1. 5
      features/product_owner.feature
  2. 4
      features/step_definitions/_then_steps.rb

@ -18,10 +18,15 @@ Feature: Product Owner
| 2 | Story 2 | | 2 | Story 2 |
| 3 | Story 3 | | 3 | Story 3 |
| 4 | Story 4 | | 4 | Story 4 |
And the project has the following stories in the following sprints:
| position | subject | sprint |
| 5 | Story A | Sprint 001 |
| 6 | Story B | Sprint 001 |
Scenario: View the product backlog Scenario: View the product backlog
Given I am viewing the master backlog Given I am viewing the master backlog
Then I should see the product backlog Then I should see the product backlog
And I should see 4 stories in the product backlog
And I should see 4 sprint backlogs And I should see 4 sprint backlogs
Scenario: Create a new story Scenario: Create a new story

@ -25,6 +25,10 @@ Then /^I should see the product backlog$/ do
page.should have_css('#product_backlog') page.should have_css('#product_backlog')
end end
Then /^I should see (\d+) stories in the product backlog$/ do |count|
page.all(:css, "#product_backlog .story").length.should == count.to_i
end
Then /^show me the list of sprints$/ do Then /^show me the list of sprints$/ do
sprints = Sprint.find(:all, :conditions => ["project_id=?", @project.id]) sprints = Sprint.find(:all, :conditions => ["project_id=?", @project.id])

Loading…
Cancel
Save