mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 10:56:17 +01:00
Adds issue relations to individual issue XML (#5305).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3729 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -54,4 +54,13 @@ class IssueRelationTest < ActiveSupport::TestCase
|
||||
assert_equal from, relation.issue_from
|
||||
assert_equal to, relation.issue_to
|
||||
end
|
||||
|
||||
def test_relation_type_for
|
||||
from = Issue.find(1)
|
||||
to = Issue.find(2)
|
||||
|
||||
relation = IssueRelation.new :issue_from => from, :issue_to => to, :relation_type => IssueRelation::TYPE_PRECEDES
|
||||
assert_equal IssueRelation::TYPE_PRECEDES, relation.relation_type_for(from)
|
||||
assert_equal IssueRelation::TYPE_FOLLOWS, relation.relation_type_for(to)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user