Include RbStatisticsController#show in suite of tests

pull/6827/head
Mark Maglana 14 years ago
parent 92f45ab3f5
commit cac3784165
  1. 4
      features/product_owner.feature
  2. 1
      features/step_definitions/_given_steps.rb
  3. 4
      features/step_definitions/_when_steps.rb

@ -29,6 +29,10 @@ Feature: Product Owner
And I should see 4 stories in the product backlog
And I should see 4 sprint backlogs
Scenario: View scrum statistics
When I visit the scrum statistics page
Then the request should complete successfully
Scenario: Create a new story
Given I am viewing the master backlog
And I want to create a story

@ -3,6 +3,7 @@ Given /^I am a product owner of the project$/ do
role.permissions << :view_master_backlog
role.permissions << :create_stories
role.permissions << :update_stories
role.permissions << :view_scrum_statistics
role.save!
login_as_product_owner
end

@ -100,6 +100,10 @@ When /^I update the task$/ do
@task_params.merge({ "_method" => "put" })
end
Given /^I visit the scrum statistics page$/ do
visit url_for(:controller => :rb_statistics, :action => :show)
end
When /^I download the calendar feed$/ do
visit url_for({ :key => @api_key, :controller => 'rb_calendars', :action => 'show', :format => 'xml', :project_id => @project })
end

Loading…
Cancel
Save