##// END OF EJS Templates
Adds a test for when link_copied_issue setting is set to "never"....
Jean-Philippe Lang -
r13323:50b12518a196
parent child
Show More
@@ -2632,6 +2632,18 class IssuesControllerTest < ActionController::TestCase
2632 end
2632 end
2633 end
2633 end
2634
2634
2635 def test_create_as_copy_should_never_add_relation_with_copied_issue_by_setting
2636 with_settings :link_copied_issue => 'no' do
2637 @request.session[:user_id] = 2
2638 assert_difference 'Issue.count' do
2639 assert_no_difference 'IssueRelation.count' do
2640 post :create, :project_id => 1, :copy_from => 1, :link_copy => '1',
2641 :issue => {:subject => 'Copy'}
2642 end
2643 end
2644 end
2645 end
2646
2635 def test_create_as_copy_should_copy_subtasks
2647 def test_create_as_copy_should_copy_subtasks
2636 @request.session[:user_id] = 2
2648 @request.session[:user_id] = 2
2637 issue = Issue.generate_with_descendants!
2649 issue = Issue.generate_with_descendants!
General Comments 0
You need to be logged in to leave comments. Login now