summaryrefslogtreecommitdiffstats
path: root/test/functional/issue_relations_controller_test.rb
diff options
context:
space:
mode:
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2011-06-26 12:47:15 +0000
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2011-06-26 12:47:15 +0000
commitf982c5b90d5258196774bccfa6a4c587f2a878c5 (patch)
tree08a6b35b013666df80e564010cb30b003fec166a /test/functional/issue_relations_controller_test.rb
parentee527ab47c3f94dd7853a586b14314b456ffa553 (diff)
downloadredmine-f982c5b90d5258196774bccfa6a4c587f2a878c5.tar.gz
redmine-f982c5b90d5258196774bccfa6a4c587f2a878c5.zip
Fixed circular dependencies possibly introduced when using reverse relations, for instance "blocked by" relations (#8616).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6124 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issue_relations_controller_test.rb')
-rw-r--r--test/functional/issue_relations_controller_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/issue_relations_controller_test.rb b/test/functional/issue_relations_controller_test.rb
index ff3bb8d0d..72f13eb9c 100644
--- a/test/functional/issue_relations_controller_test.rb
+++ b/test/functional/issue_relations_controller_test.rb
@@ -74,6 +74,8 @@ class IssueRelationsControllerTest < ActionController::TestCase
:relation => {:issue_to_id => '4', :relation_type => 'relates', :delay => ''}
end
end
+
+ should "prevent relation creation when there's a circular dependency"
def test_destroy
assert_difference 'IssueRelation.count', -1 do