kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
12 years ago
|
#encoding: utf-8
|
||
12 years ago
|
#-- copyright
|
||
|
# OpenProject is a project management system.
|
||
|
#
|
||
|
# Copyright (C) 2012-2013 the OpenProject Team
|
||
|
#
|
||
|
# This program is free software; you can redistribute it and/or
|
||
|
# modify it under the terms of the GNU General Public License version 3.
|
||
|
#
|
||
|
# See doc/COPYRIGHT.rdoc for more details.
|
||
|
#++
|
||
|
|
||
12 years ago
|
FactoryGirl.define do
|
||
12 years ago
|
factory(:planning_element, :class => PlanningElement) do
|
||
12 years ago
|
|
||
|
prepared_names = [
|
||
|
"Backup",
|
||
|
"BzA",
|
||
|
"Design",
|
||
|
"Detailed Design",
|
||
|
"Development",
|
||
|
"Feasability Study",
|
||
|
"Impact Analysis",
|
||
|
"Integrationstest",
|
||
|
"New Testing",
|
||
|
"PNPA",
|
||
|
"Preproduction",
|
||
|
"Realization",
|
||
|
"Reporting",
|
||
|
"Rollout",
|
||
|
"Specification",
|
||
|
"Superelement",
|
||
|
"Test",
|
||
|
"Testdurchführung",
|
||
|
"Testing",
|
||
|
"Testplanung",
|
||
|
"Testplanung",
|
||
|
"Testspezifikation"
|
||
|
]
|
||
|
|
||
12 years ago
|
sequence(:subject) { |n| "#{prepared_names.sample} No. #{n}" }
|
||
12 years ago
|
sequence(:description) { |n| "Planning Element No. #{n} is the most important part of the project." }
|
||
|
|
||
|
sequence(:start_date) { |n| ((n - 1) * 7).days.since.to_date }
|
||
|
sequence(:end_date) { |n| (n * 7).days.since.to_date }
|
||
|
|
||
|
association :project
|
||
|
end
|
||
|
end
|