diff options
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/issue_relations_controller_test.rb | 2 |
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 |