@@ -69,7 +69,8 class IssueRelationTest < ActiveSupport::TestCase | |||||
69 | from = Issue.find(1) |
|
69 | from = Issue.find(1) | |
70 | to = Issue.find(2) |
|
70 | to = Issue.find(2) | |
71 |
|
71 | |||
72 |
relation = IssueRelation.new :issue_from => from, :issue_to => to, |
|
72 | relation = IssueRelation.new :issue_from => from, :issue_to => to, | |
|
73 | :relation_type => IssueRelation::TYPE_PRECEDES | |||
73 | assert_equal IssueRelation::TYPE_PRECEDES, relation.relation_type_for(from) |
|
74 | assert_equal IssueRelation::TYPE_PRECEDES, relation.relation_type_for(from) | |
74 | assert_equal IssueRelation::TYPE_FOLLOWS, relation.relation_type_for(to) |
|
75 | assert_equal IssueRelation::TYPE_FOLLOWS, relation.relation_type_for(to) | |
75 | end |
|
76 | end |
General Comments 0
You need to be logged in to leave comments.
Login now