move step to plugins/cucumber since timelines needs at

least one step
pull/6827/head
Romano Licker 13 years ago
parent 34b63d0e49
commit 1e6e26afe2
  1. 14
      features/step_definitions/_given_steps.rb

@ -86,20 +86,6 @@ Given /^the backlogs module is initialized(?: in [pP]roject "(.*)")?$/ do |proje
step "the project \"#{project.name}\" uses the following trackers:", Cucumber::Ast::Table.new([['Story', 'Task']])
end
Given /^the [pP]roject(?: "([^\"]+?)")? uses the following trackers:$/ do |project, table|
project = get_project(project)
trackers = table.raw.map do |line|
name = line.first
tracker = Tracker.find_by_name(name)
tracker = Factory.create(:tracker, :name => name) if tracker.blank?
tracker
end
project.update_attributes :tracker_ids => trackers.map(&:id).map(&:to_s)
end
Given /^the [pP]roject(?: "([^\"]*)")? has the following sprints:$/ do |project_name, table|
project = get_project(project_name)

Loading…
Cancel
Save