code layout clean up of test_follows_relation_should_be_reversed at test/unit/issue_relation_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7600 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
64a6f9583f
commit
ce7bd36a20
|
@ -43,7 +43,8 @@ class IssueRelationTest < ActiveSupport::TestCase
|
||||||
from = Issue.find(1)
|
from = Issue.find(1)
|
||||||
to = Issue.find(2)
|
to = Issue.find(2)
|
||||||
|
|
||||||
relation = IssueRelation.new :issue_from => from, :issue_to => to, :relation_type => IssueRelation::TYPE_FOLLOWS
|
relation = IssueRelation.new :issue_from => from, :issue_to => to,
|
||||||
|
:relation_type => IssueRelation::TYPE_FOLLOWS
|
||||||
assert relation.save
|
assert relation.save
|
||||||
relation.reload
|
relation.reload
|
||||||
assert_equal IssueRelation::TYPE_PRECEDES, relation.relation_type
|
assert_equal IssueRelation::TYPE_PRECEDES, relation.relation_type
|
||||||
|
|
Loading…
Reference in New Issue