diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-04 17:29:33 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-04 17:29:33 +0000 |
commit | ea06b3cca5070dc5033de13e79e2dcf6f4cce2c1 (patch) | |
tree | bfd0c41c019b53aedda36768058f7d668c8ff790 /test/unit/issue_relation_test.rb | |
parent | 21b37187445f03c9395f5fc36b5bd1a42d99d980 (diff) | |
download | redmine-ea06b3cca5070dc5033de13e79e2dcf6f4cce2c1.tar.gz redmine-ea06b3cca5070dc5033de13e79e2dcf6f4cce2c1.zip |
Set a default value for relation type.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6177 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_relation_test.rb')
-rw-r--r-- | test/unit/issue_relation_test.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/unit/issue_relation_test.rb b/test/unit/issue_relation_test.rb index 7f1581a26..3c8347b45 100644 --- a/test/unit/issue_relation_test.rb +++ b/test/unit/issue_relation_test.rb @@ -1,5 +1,5 @@ # Redmine - project management software -# Copyright (C) 2006-2009 Jean-Philippe Lang +# Copyright (C) 2006-2011 Jean-Philippe Lang # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -32,6 +32,12 @@ class IssueRelationTest < ActiveSupport::TestCase assert_equal to, relation.issue_to end + def test_create_minimum + relation = IssueRelation.new :issue_from => Issue.find(1), :issue_to => Issue.find(2) + assert relation.save + assert_equal IssueRelation::TYPE_RELATES, relation.relation_type + end + def test_follows_relation_should_be_reversed from = Issue.find(1) to = Issue.find(2) |