@@ -24,7 +24,8 class IssueRelationTest < ActiveSupport::TestCase | |||||
24 | from = Issue.find(1) |
|
24 | from = Issue.find(1) | |
25 | to = Issue.find(2) |
|
25 | to = Issue.find(2) | |
26 |
|
26 | |||
27 |
relation = IssueRelation.new :issue_from => from, :issue_to => to, |
|
27 | relation = IssueRelation.new :issue_from => from, :issue_to => to, | |
|
28 | :relation_type => IssueRelation::TYPE_PRECEDES | |||
28 | assert relation.save |
|
29 | assert relation.save | |
29 | relation.reload |
|
30 | relation.reload | |
30 | assert_equal IssueRelation::TYPE_PRECEDES, relation.relation_type |
|
31 | assert_equal IssueRelation::TYPE_PRECEDES, relation.relation_type |
General Comments 0
You need to be logged in to leave comments.
Login now