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

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7601 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-10-07 12:22:07 +00:00
parent ce7bd36a20
commit 33349c93db
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ 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, :delay => 'xx' relation = IssueRelation.new :issue_from => from, :issue_to => to,
:relation_type => IssueRelation::TYPE_FOLLOWS,
:delay => 'xx'
assert !relation.save assert !relation.save
assert_equal IssueRelation::TYPE_FOLLOWS, relation.relation_type assert_equal IssueRelation::TYPE_FOLLOWS, relation.relation_type
assert_equal from, relation.issue_from assert_equal from, relation.issue_from