Add regressions test for previous commit

pull/6827/head
Mark Maglana 14 years ago
parent 3ad742ce26
commit 7bf3040e26
  1. 5
      features/common.feature
  2. 6
      features/step_definitions/_given_steps.rb
  3. 5
      features/step_definitions/_when_steps.rb

@ -11,3 +11,8 @@ Feature: Common
Given I am viewing the master backlog
When I request the server_variables resource
Then the request should complete successfully
Scenario: View the product backlog without any stories
Given there are no stories in the project
When I view the master backlog
Then the request should complete successfully

@ -39,7 +39,7 @@ end
Given /^I am viewing the master backlog$/ do
visit url_for(:controller => :projects, :action => :show, :id => @project)
click_link("Backlog")
click_link("Backlogs")
page.driver.response.status.should == 200
end
@ -251,3 +251,7 @@ end
Given /^I have made (.+) the template page for sprint notes/ do |title|
Setting.plugin_redmine_backlogs = Setting.plugin_redmine_backlogs.merge({:wiki_template => Wiki.titleize(title)})
end
Given /^there are no stories in the project$/ do
@project.issues.delete_all
end

@ -108,6 +108,11 @@ When /^I download the calendar feed$/ do
visit url_for({ :key => @api_key, :controller => 'rb_calendars', :action => 'show', :format => 'xml', :project_id => @project })
end
When /^I view the master backlog$/ do
visit url_for(:controller => :projects, :action => :show, :id => @project)
click_link("Backlogs")
end
When /^I view the stories of (.+) in the issues tab/ do |sprint_name|
sprint = Sprint.find(:first, :conditions => ["name=?", sprint_name])
visit url_for(:controller => :rb_queries, :action => :show, :project_id => sprint.project_id, :sprint_id => sprint.id)

Loading…
Cancel
Save