summaryrefslogtreecommitdiffstats
path: root/test/unit/issue_relation_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
* Disallow creating inverse relates issue relations (#27663).Go MAEDA2017-12-061-0/+14
| | | | | | | Patch by Gregor Schmidt. git-svn-id: http://svn.redmine.org/redmine/trunk@17056 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverted r17054 (#27663).Go MAEDA2017-11-301-14/+0
| | | | | | | | The change breaks test/functional/issue_relations_controller_test.rb. git-svn-id: http://svn.redmine.org/redmine/trunk@17055 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Disallow creating inverse relates issue relations (#27663).Go MAEDA2017-11-291-0/+14
| | | | | | | Patch by Gregor Schmidt. git-svn-id: http://svn.redmine.org/redmine/trunk@17054 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
* 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
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Overrides IssueRelation#to_s.Jean-Philippe Lang2014-11-051-0/+19
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13563 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that IssueRelation should not be responsible for calling ↵Jean-Philippe Lang2014-11-021-2/+4
| | | | | | Issue#init_journal (#18237). git-svn-id: http://svn.redmine.org/redmine/trunk@13534 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
* Removed unused variable.Jean-Philippe Lang2013-12-151-1/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12417 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Store relation type instead of i18n key in journals (#15704).Jean-Philippe Lang2013-12-151-4/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12416 e93f8b46-1217-0410-a6f0-8f06a7374b81
* not use assert_not_nil in Errors#[]Toshi MARUYAMA2013-07-301-2/+2
| | | | | | | | r7593 etc. replaced Rails2 Errors#on. Rails3 Errors#[] always return array. So, Rails3 Errors#[] is always not nil. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12070 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add missing fixture to test/unit/issue_relation_test.rbToshi MARUYAMA2013-07-301-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12069 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add journal after creating/deleting issue relation (#1005)Toshi MARUYAMA2013-05-191-0/+45
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11885 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that r11641 prevents precedes/follows relations between subtasks (#13586).Jean-Philippe Lang2013-03-261-0/+13
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11692 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: Circular loop when using relations and subtasks (#8794).Jean-Philippe Lang2013-03-171-0/+22
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11641 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
* code layout cleanup test/unit/issue_relation_test.rbToshi MARUYAMA2012-10-091-6/+24
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10573 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add missing fixtures to test/unit/issue_relation_test.rbToshi MARUYAMA2012-10-091-1/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10572 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
* code layout clean up of test_set_issue_to_dates_without_issue_to at ↵Toshi MARUYAMA2011-10-071-1/+3
| | | | | | test/unit/issue_relation_test.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7603 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code layout clean up of test_relation_type_for at ↵Toshi MARUYAMA2011-10-071-1/+2
| | | | | | test/unit/issue_relation_test.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7602 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code layout clean up of ↵Toshi MARUYAMA2011-10-071-1/+3
| | | | | | test_follows_relation_should_not_be_reversed_if_validation_fails at test/unit/issue_relation_test.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7601 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code layout clean up of test_follows_relation_should_be_reversed at ↵Toshi MARUYAMA2011-10-071-1/+2
| | | | | | test/unit/issue_relation_test.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7600 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code layout clean up of test_create at test/unit/issue_relation_test.rbToshi MARUYAMA2011-10-071-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7599 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: test: replace deprecated errors.on at ↵Toshi MARUYAMA2011-10-071-1/+1
| | | | | | test_validates_circular_dependency_on_reverse_relations of unit/issue_relation_test.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7598 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: test: replace deprecated errors.on at ↵Toshi MARUYAMA2011-10-071-1/+1
| | | | | | test_validates_circular_dependency of unit/issue_relation_test.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7597 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from test/unit/issue_relation_test.rb.Toshi MARUYAMA2011-08-291-13/+13
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6748 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Document why relation is reversed after validation.Jean-Philippe Lang2011-07-041-3/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6178 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set a default value for relation type.Jean-Philippe Lang2011-07-041-1/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6177 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed circular dependencies possibly introduced when using reverse ↵Jean-Baptiste Barth2011-06-261-0/+12
| | | | | | relations, for instance "blocked by" relations (#8616). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6124 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a test for issue circular dependency validation.Jean-Philippe Lang2011-01-151-0/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4721 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
* Safer code in IssueRelation (#7018).Jean-Philippe Lang2010-12-041-0/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4467 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds issue relations to individual issue XML (#5305).Jean-Philippe Lang2010-05-011-0/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3729 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes 'follows' relation validation.Jean-Philippe Lang2009-12-181-0/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3191 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds 'follows' relation (#1432).Jean-Philippe Lang2009-12-181-0/+46
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3190 e93f8b46-1217-0410-a6f0-8f06a7374b81