Removing 'I am viewing the burndown for' which was url_for based

pull/6827/head
Gregor Schmidt 14 years ago
parent f54614d16d
commit 4734a6babe
  1. 6
      features/step_definitions/_given_steps.rb
  2. 6
      features/support/paths.rb
  3. 2
      features/team_member.feature

@ -2,12 +2,6 @@ Given /^I am logged out$/ do
logout
end
Given /^I am viewing the burndown for (.+)$/ do |sprint_name|
@sprint = Sprint.find(:first, :conditions => ["name=?", sprint_name])
visit url_for(:controller => :rb_burndown_charts, :action => :show, :sprint_id => @sprint.id)
page.driver.response.status.should == 200
end
Given /^I am viewing the taskboard for (.+)$/ do |sprint_name|
@sprint = Sprint.find(:first, :conditions => ["name=?", sprint_name])
visit url_for(:controller => :rb_taskboards, :action => :show, :sprint_id => @sprint.id)

@ -15,6 +15,12 @@ module BacklogsNavigationHelpers
project = get_project
path_to %Q{the overview page of the project called "#{project.name}"}
when /^the burndown for "(.+?)"(?: (?:in|of) the [pP]roject "(.+?)")?$/
project = get_project($2)
sprint = Sprint.find_by_name_and_project_id($1, project)
"/rb/burndown_charts/#{sprint.id}"
when /^the scrum statistics page$/
"/rb/statistics"

@ -64,7 +64,7 @@ Feature: Team Member
Then I should see the taskboard
Scenario: View the burndown chart
Given I am viewing the burndown for Sprint 002
Given I am on the burndown for "Sprint 002"
And we have reactivated the burndown chart
Then I should see the burndown chart

Loading…
Cancel
Save