From f2b17f77943959ea2a415f239ff50e2758c49859 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 13 Apr 2021 09:01:44 +0000 Subject: Clean-up workflows controller (#33337). Patch by Vincent Robert and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20941 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/workflows_controller_test.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test/functional/workflows_controller_test.rb') diff --git a/test/functional/workflows_controller_test.rb b/test/functional/workflows_controller_test.rb index cdb1f320f..e4bdd7084 100644 --- a/test/functional/workflows_controller_test.rb +++ b/test/functional/workflows_controller_test.rb @@ -134,7 +134,7 @@ class WorkflowsControllerTest < Redmine::ControllerTest def test_post_edit WorkflowTransition.delete_all - post :edit, :params => { + patch :update, :params => { :role_id => 2, :tracker_id => 1, :transitions => { @@ -152,7 +152,7 @@ class WorkflowsControllerTest < Redmine::ControllerTest def test_post_edit_with_allowed_statuses_for_new_issues WorkflowTransition.delete_all - post :edit, :params => { + patch :update, :params => { :role_id => 2, :tracker_id => 1, :transitions => { @@ -169,7 +169,7 @@ class WorkflowsControllerTest < Redmine::ControllerTest def test_post_edit_with_additional_transitions WorkflowTransition.delete_all - post :edit, :params => { + patch :update, :params => { :role_id => 2, :tracker_id => 1, :transitions => { @@ -346,7 +346,7 @@ class WorkflowsControllerTest < Redmine::ControllerTest def test_post_permissions WorkflowPermission.delete_all - post :permissions, :params => { + patch :update_permissions, :params => { :role_id => 1, :tracker_id => 2, :permissions => { @@ -389,7 +389,7 @@ class WorkflowsControllerTest < Redmine::ControllerTest def test_post_copy_one_to_one source_transitions = status_transitions(:tracker_id => 1, :role_id => 2) - post :copy, :params => { + post :duplicate, :params => { :source_tracker_id => '1', :source_role_id => '2', :target_tracker_ids => ['3'], :target_role_ids => ['1'] } @@ -400,7 +400,7 @@ class WorkflowsControllerTest < Redmine::ControllerTest def test_post_copy_one_to_many source_transitions = status_transitions(:tracker_id => 1, :role_id => 2) - post :copy, :params => { + post :duplicate, :params => { :source_tracker_id => '1', :source_role_id => '2', :target_tracker_ids => ['2', '3'], :target_role_ids => ['1', '3'] } @@ -415,7 +415,7 @@ class WorkflowsControllerTest < Redmine::ControllerTest source_t2 = status_transitions(:tracker_id => 2, :role_id => 2) source_t3 = status_transitions(:tracker_id => 3, :role_id => 2) - post :copy, :params => { + post :duplicate, :params => { :source_tracker_id => 'any', :source_role_id => '2', :target_tracker_ids => ['2', '3'], :target_role_ids => ['1', '3'] } @@ -428,7 +428,7 @@ class WorkflowsControllerTest < Redmine::ControllerTest def test_post_copy_with_incomplete_source_specification_should_fail assert_no_difference 'WorkflowRule.count' do - post :copy, :params => { + post :duplicate, :params => { :source_tracker_id => '', :source_role_id => '2', :target_tracker_ids => ['2', '3'], :target_role_ids => ['1', '3'] } @@ -439,7 +439,7 @@ class WorkflowsControllerTest < Redmine::ControllerTest def test_post_copy_with_incomplete_target_specification_should_fail assert_no_difference 'WorkflowRule.count' do - post :copy, :params => { + post :duplicate, :params => { :source_tracker_id => '1', :source_role_id => '2', :target_tracker_ids => ['2', '3'] } -- cgit v1.2.3