summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2017-11-30 00:02:02 +0000
committerGo MAEDA <maeda@farend.jp>2017-11-30 00:02:02 +0000
commit0ed07156ad3b106cc73130549a487d54bf5ca64f (patch)
tree52ad8ac32a8d86c1b6928cb11cf550d50f1c6589 /test/unit
parent3a310ccc2e1b8d7ce6883d73059ba2722bfbe99f (diff)
downloadredmine-0ed07156ad3b106cc73130549a487d54bf5ca64f.tar.gz
redmine-0ed07156ad3b106cc73130549a487d54bf5ca64f.zip
Reverted r17054 (#27663).
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
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/issue_relation_test.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/test/unit/issue_relation_test.rb b/test/unit/issue_relation_test.rb
index 585a8293e..e6d126dcb 100644
--- a/test/unit/issue_relation_test.rb
+++ b/test/unit/issue_relation_test.rb
@@ -65,20 +65,6 @@ class IssueRelationTest < ActiveSupport::TestCase
assert_equal from, relation.issue_to
end
- def test_cannot_create_inverse_relates_relations
- from = Issue.find(1)
- to = Issue.find(2)
-
- relation1 = IssueRelation.new :issue_from => from, :issue_to => to,
- :relation_type => IssueRelation::TYPE_RELATES
- assert relation1.save
-
- relation2 = IssueRelation.new :issue_from => to, :issue_to => from,
- :relation_type => IssueRelation::TYPE_RELATES
- assert !relation2.save
- assert_not_equal [], relation2.errors[:base]
- end
-
def test_follows_relation_should_not_be_reversed_if_validation_fails
from = Issue.find(1)
to = Issue.find(2)