@@ -56,7 +56,9 class IssueRelationTest < ActiveSupport::TestCase | |||||
56 | from = Issue.find(1) |
|
56 | from = Issue.find(1) | |
57 | to = Issue.find(2) |
|
57 | to = Issue.find(2) | |
58 |
|
58 | |||
59 |
relation = IssueRelation.new :issue_from => from, :issue_to => to, |
|
59 | relation = IssueRelation.new :issue_from => from, :issue_to => to, | |
|
60 | :relation_type => IssueRelation::TYPE_FOLLOWS, | |||
|
61 | :delay => 'xx' | |||
60 | assert !relation.save |
|
62 | assert !relation.save | |
61 | assert_equal IssueRelation::TYPE_FOLLOWS, relation.relation_type |
|
63 | assert_equal IssueRelation::TYPE_FOLLOWS, relation.relation_type | |
62 | assert_equal from, relation.issue_from |
|
64 | assert_equal from, relation.issue_from |
General Comments 0
You need to be logged in to leave comments.
Login now