Commit 315342d4 authored by tmaruyama's avatar tmaruyama

code layout clean up of test_relation_type_for at test/unit/issue_relation_test.rb

git-svn-id: https://svn.redmine.org/redmine/trunk@7602 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 36fdfa18
......@@ -69,7 +69,8 @@ class IssueRelationTest < ActiveSupport::TestCase
from = Issue.find(1)
to = Issue.find(2)
relation = IssueRelation.new :issue_from => from, :issue_to => to, :relation_type => IssueRelation::TYPE_PRECEDES
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment