From cac3784165b6118f42bd0d02887ff4fa25841c9d Mon Sep 17 00:00:00 2001 From: Mark Maglana Date: Tue, 7 Sep 2010 08:10:01 +0800 Subject: [PATCH] Include RbStatisticsController#show in suite of tests --- features/product_owner.feature | 4 ++++ features/step_definitions/_given_steps.rb | 1 + features/step_definitions/_when_steps.rb | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/features/product_owner.feature b/features/product_owner.feature index db7c12364e..78a0a5105c 100644 --- a/features/product_owner.feature +++ b/features/product_owner.feature @@ -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 diff --git a/features/step_definitions/_given_steps.rb b/features/step_definitions/_given_steps.rb index 3addc854ed..d72a239974 100644 --- a/features/step_definitions/_given_steps.rb +++ b/features/step_definitions/_given_steps.rb @@ -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 diff --git a/features/step_definitions/_when_steps.rb b/features/step_definitions/_when_steps.rb index a3694d74fa..d6638bf9bd 100644 --- a/features/step_definitions/_when_steps.rb +++ b/features/step_definitions/_when_steps.rb @@ -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