summaryrefslogtreecommitdiffstats
path: root/test/unit/project_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Removed shoulda assertions.Jean-Philippe Lang2012-03-041-29/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9088 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed potential test failure.Jean-Philippe Lang2012-02-281-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9025 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed potential test failure.Jean-Philippe Lang2012-02-281-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9024 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: error when creating a project with a version format custom field ↵Jean-Philippe Lang2012-02-131-0/+7
| | | | | | (#10218). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8865 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow underscores in project identifiers (#1363).Jean-Philippe Lang2012-01-271-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8708 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copy attachments on issue and project copy (#3055).Jean-Philippe Lang2012-01-201-0/+12
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8676 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes assertion Rails3 compatible.Jean-Philippe Lang2011-12-261-1/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8386 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Do assertions on collection, not on association.Jean-Philippe Lang2011-12-261-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8385 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Missing fixtures.Jean-Philippe Lang2011-12-261-1/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8384 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make sure that tests restore the attachments path to the tmp dir so that ↵Jean-Philippe Lang2011-12-161-0/+1
| | | | | | fixture files don't get deleted. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8248 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: copied private queries not visible after project copy (#9520).Jean-Philippe Lang2011-11-111-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7782 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: test: replace deprecated errors.on at test_validate_identifier of ↵Toshi MARUYAMA2011-10-071-1/+1
| | | | | | unit/project_test.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7596 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: replace "all" fixtures at test/unit/project_test.rbToshi MARUYAMA2011-09-241-1/+12
| | | | | | | Following error raises. Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7505 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from test/unit/project_test.rb.Toshi MARUYAMA2011-08-211-85/+83
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6520 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added Project#enable_module! and Project#disable_module! (#7115)Jean-Baptiste Barth2011-06-191-0/+48
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6098 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Modules selection lost on project form after validation failure (#8012).Jean-Philippe Lang2011-03-301-0/+8
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5265 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: news comments not deleted when deleting a project (#7904).Jean-Philippe Lang2011-03-201-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5176 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: children projects are deleted instead of being destroyed when ↵Jean-Philippe Lang2011-03-201-2/+37
| | | | | | destroying parent project (#7904). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5171 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Additional roles of a user who belongs to a group are not always copied when ↵Jean-Philippe Lang2011-01-021-0/+16
| | | | | | copying the project (#7213). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4615 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050Jean-Baptiste Barth2010-12-121-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4509 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Select projects with issue_tracking module for gantt display and remove the ↵Jean-Philippe Lang2010-12-071-16/+0
| | | | | | nil start/due dates trick. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4477 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moves project attributes default assignments from ProjectsController#new to ↵Jean-Philippe Lang2010-12-031-0/+29
| | | | | | the model (#6064). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4460 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow non-unique names for projects (#630).Jean-Philippe Lang2010-11-111-1/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4391 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Improved error message when trying to access an archived project (#2995).Jean-Philippe Lang2010-10-231-0/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4285 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Change Project#notified_users to check for the 'all' notification option. #6541Eric Davis2010-10-101-0/+50
| | | | | | | | | | | | The previous mail_notification? check would always pass since the notifications where converted to strings and strings are always true. Also changed Project#recipients to use #notified_users instead of duplicated code. Based on contribution by Felix Schäfer. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4247 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Project tests updated.Jean-Philippe Lang2010-09-261-0/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4179 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rewrite the Gantt chart. #6276Eric Davis2010-09-101-0/+118
| | | | | | | | | | | | | | | | | | | | | | | | This version of the Gantt chart supports nested charts. So Projects, Versions, and Issues will be nested underneath their parents correctly. Additional features: * Move all Gantt code to Redmine::Helpers::Gantt class instead of having it in the Gantt class, controller, and view * Recursive and nest sub-projects * Recursive and nest versions * Recursive and nest issues * Draw a line showing when a Project is active and it's progress * Draw a line showing when a Version is active and it's progress * Show a version's % complete * Change the color of Projects, Versions, and Issues if they are late or behind schedule * Added Project#start_date and #due_date * Added Project#completed_percent * Use a mini-gravatar on the Gantt chart * Added tests for the Gantt rendering git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4072 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Show subproject versions on the Roadmap.Eric Davis2010-05-271-0/+53
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3760 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds an assertion on issues deletion when deleting a project (#5381).Jean-Philippe Lang2010-04-271-2/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3693 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: Project copy loses wiki pages hierarchy (#4797).Jean-Philippe Lang2010-02-111-4/+12
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3412 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: parent project field doesn't include blank value when a member with ↵Jean-Philippe Lang2010-02-101-0/+42
| | | | | | 'add subproject' permission edits a child project (#4790). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3405 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updated object_daddy to a newer version (bugfixes)Eric Davis2010-02-081-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3398 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: project copy doesn't copy group memberships (#3975).Jean-Philippe Lang2009-12-261-5/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3250 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Project#activities should check all overridden activities, not just active ones.Eric Davis2009-12-241-0/+11
| | | | | | Fixes #4084 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3239 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a 'Add subprojects' permission.Jean-Philippe Lang2009-12-241-1/+1
| | | | | | | * 'Add project' permission will let user create a root project * 'Add subprojects' permission will let project members create subprojects git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Project custom fields are already copied via the Copy form. (#3367)Eric Davis2009-12-131-2/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3165 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copy issue relations when copying a project. (#3367)Eric Davis2009-12-131-3/+35
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3164 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes Project#shared_versions for descendants sharing (#465).Jean-Philippe Lang2009-12-071-0/+50
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3130 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Version sharing (#465) + optional inclusion of subprojects in the roadmap ↵Jean-Philippe Lang2009-12-061-11/+101
| | | | | | | | | | | | | | | | view (#2666). Each version of a project can be shared with: * subprojects * projects in the project hierarchy: ancestors + descendants (needs versions management permission on the root project) * projects in the project tree: root project + all its descendants (same as above) * all projects (can be set by admin users only) Notes: * when sharing a version of a private project with others projects, its name will be visible within the other projects * a project with versions used by non descendant projects can not be archived git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3123 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copy issue status on project copy (#3877).Jean-Philippe Lang2009-11-161-0/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3075 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow non admin users to add subprojects (#2963).Jean-Philippe Lang2009-11-151-0/+9
| | | | | | Subprojects can be added to the projects for which the user has add_project permission. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3059 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a link to automatically close completed versions in project settings ↵Jean-Philippe Lang2009-11-091-0/+11
| | | | | | (#1245). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3023 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow project forums copy.Jean-Philippe Lang2009-10-251-0/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2976 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add a test that breaks before r2967 (broken project wiki copy).Jean-Philippe Lang2009-10-251-2/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2968 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Project copy: let the user choose what to copy from the source project ↵Jean-Philippe Lang2009-10-241-0/+12
| | | | | | (everything by default). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2966 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added a Activities tab to Project SettingsEric Davis2009-10-211-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | * Changed Project#activities to allow getting inactive Activities also: * Changed the Enumeration#all named_scope to exclude project specific Activities * Changed the Project has_many time_entry_activities to include all by default and provided an #active method to filter them to active ones only * Split Project#activities to two methods and gave it a parameter that is used to determine if inactive activities are included (default is no) * Added a reset button to delete all project specific activities. * Added ProjectsController#reset_activities to remove the project specific activities * Added a HTTP DELETE route for reset_activities * Changed the permissions for managing project activities to have access to the ProjectsController#reset_activities action * Added a way to bulk save Project specific Activities in ProjectsController * #save_activities will save all the changed activities, including update the existing records * Added helper methods to the controller which will be refactored later * Allow the same TimeEntryActivity names on different projects #4077 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2949 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Changed the Timelogs to use both the Systemwide and Project specific ↵Eric Davis2009-10-211-0/+47
| | | | | | | | | | | | TimeEntryActivities * Added Project#activities to return all the Systemwide and Project specific activities, excluding Systemwide ones that are overridden. * Added some tests for TimelogHelper. #4077 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2948 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added shoulda macros to test Project's associationsEric Davis2009-10-191-0/+24
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2936 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaced a custom test with a shoulda macro.Eric Davis2009-10-191-8/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2935 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Improved Project#copy to copy more data from the source Project. #3367Eric Davis2009-10-191-1/+81
| | | | | | | | | | | * Versions * Associate the copied issues with the new versions * Wiki * WikiPages * WikiContents * IssueCategories git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2934 e93f8b46-1217-0410-a6f0-8f06a7374b81