summaryrefslogtreecommitdiffstats
path: root/test/unit/version_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable frozen_string_literal for some files under test directory (#26561).Go MAEDA2019-03-161-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17978 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-151-0/+2
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set User.current to nil before unit tests.Jean-Philippe Lang2018-12-161-0/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17761 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Tests failure with SQLite3.Jean-Philippe Lang2018-12-011-1/+2
| | | | | | ActiveRecord::RecordNotUnique: SQLite3::ConstraintException: UNIQUE constraint failed: custom_fields_trackers.custom_field_id, custom_fields_trackers.tracker_id: INSERT INTO "custom_fields_trackers" ("custom_field_id", "tracker_id") VALUES (?, ?) git-svn-id: http://svn.redmine.org/redmine/trunk@17674 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Filter for version name should be case-insensitive (#27122).Go MAEDA2018-04-281-0/+8
| | | | | | | Patch by Holger Just and Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17316 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use assert_nil instead of assert_equal.Jean-Philippe Lang2016-12-111-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16060 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add option to set a new version as default directly from New Version page ↵Jean-Philippe Lang2016-10-231-0/+16
| | | | | | (#24011). git-svn-id: http://svn.redmine.org/redmine/trunk@15922 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Closed versions should be marked as completed (#21433).Jean-Philippe Lang2016-01-091-0/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15019 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Disallow users to delete a version referenced by a custom field (#20159).Jean-Philippe Lang2015-06-271-0/+21
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14376 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a few tests.Jean-Philippe Lang2014-12-031-0/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13695 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-4.1 branch (#14534).Jean-Philippe Lang2014-10-221-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix typos at unit version testToshi MARUYAMA2014-04-071-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13061 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-291-1/+1
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code layout clean up VersionTestToshi MARUYAMA2013-05-191-5/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11881 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove empty setup method from VersionTestToshi MARUYAMA2013-05-191-3/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11880 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix unit VersionTest failureToshi MARUYAMA2013-05-181-6/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11868 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed some shoulda context.Jean-Philippe Lang2013-05-181-69/+58
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11865 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright for 2013 (#12788).Jean-Philippe Lang2013-01-121-1/+1
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a custom validator for dates (#12736).Jean-Philippe Lang2013-01-051-0/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11124 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Deprecates Version#*_pourcent in favour of #*_percent (#12724).Jean-Philippe Lang2013-01-041-17/+17
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11113 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces find(:first) calls.Jean-Philippe Lang2012-12-031-6/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10928 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed version date validation (#12359).Jean-Philippe Lang2012-11-151-1/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10810 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed test/unit/version_test.rb breaking when run alone (#12285)Jean-Baptiste Barth2012-11-011-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10780 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Do not consider that versions that are due today are completed.Jean-Philippe Lang2012-09-161-0/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10397 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes Version#<=> consistent with SQL sort.Jean-Philippe Lang2012-08-021-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10152 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Sort issues by scheduled versions first then unscheduled versions.Jean-Philippe Lang2012-08-021-0/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10151 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2012-05-051-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Changed assertions to make them work with Rails2/3 ruby1.8/1.9 different ↵Jean-Philippe Lang2012-03-051-2/+2
| | | | | | behaviours. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9107 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use regular create! instead of generate!Jean-Philippe Lang2012-03-031-16/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9062 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: test: replace deprecated Errors#on to Errors#[] and join with to_s ↵Toshi MARUYAMA2011-12-091-1/+2
| | | | | | | | | at test/unit/version_test.rb On Rails2, Errors#[] returns single error if one error raises. But, on Rails3, Errors#[] always returns the array. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8132 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from test/unit/version_test.rb.Toshi MARUYAMA2011-08-301-23/+23
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6755 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds REST API for versions (#7403).Jean-Philippe Lang2011-07-041-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6180 e93f8b46-1217-0410-a6f0-8f06a7374b81
* ruby1.9 compatibilityJean-Philippe Lang2010-12-311-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4597 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
* Rewrite the Gantt chart. #6276Eric Davis2010-09-101-1/+51
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Fixes calculation of version estimated hours with subtasks (#5265).Jean-Philippe Lang2010-04-111-0/+28
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3633 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Version sharing (#465) + optional inclusion of subprojects in the roadmap ↵Jean-Philippe Lang2009-12-061-0/+35
| | | | | | | | | | | | | | | | 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
* Adds version status to limit issue assignments (#1245).Jean-Philippe Lang2009-11-081-0/+1
| | | | | | | | | Available version statuses are: * open: no restriction * locked: can not assign new issues to the version * closed: can not assign new issues and can not reopen assigned issues git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3020 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Upgraded to Rails 2.3.4 (#3597)Eric Davis2009-09-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Ran the Rails upgrade * Upgraded to Rails Engines 2.3.2 * Added a plugin to let Engines override application views. * Converted tests to use the new classes: ** ActionController::TestCase for functional ** ActiveSupport::TestCase for units * Converted ActiveRecord::Error message to a string. * ActiveRecord grouping returns an ordered hash which doesn't have #sort! * Updated the I18n storage_units format. * Added some default initializers from a fresh rails app * Changed the order of check_box_tags and hidden_field_tags. The hidden tag needs to appear first in Rails 2.3, otherwise it will override any value in the check_box_tag. * Removed the custom handler for when the cookie store is tampered with. Rails 2.3 removed the TamperedWithCookie exception and instead Rails will not load the data from it when it's been tampered with (e.g. no user login). * Fixed mail layouts, 2.3 has problems with implicit multipart emails that use layouts. Also removed some custom Redmine mailer code. * Fixed a bug that occurred in tests where the "required" span tag would be added to the :field_status translation. This resulted in an email string of: <li>Status<span class="required"> *</span><span class="required"> *</span> Instead of: <li>Status: New</li> git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2887 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.Jean-Philippe Lang2009-02-211-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use estimated hours to weight issues in version completion calculation (#2182).Jean-Philippe Lang2009-02-011-1/+85
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2349 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes VersionTest class.Jean-Philippe Lang2008-09-211-3/+3
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1889 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: invalid effective date (eg. 99999-01-01) causes an error on version ↵Jean-Philippe Lang2008-09-211-0/+36
edition screen. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1888 e93f8b46-1217-0410-a6f0-8f06a7374b81