diff options
author | Go MAEDA <maeda@farend.jp> | 2021-04-13 09:01:44 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-04-13 09:01:44 +0000 |
commit | f2b17f77943959ea2a415f239ff50e2758c49859 (patch) | |
tree | 9bd47fb9865b780ab0959eb7693466527173d8dc /test/functional/workflows_controller_test.rb | |
parent | 6c5a16daf858149933e161595cf98534ea2e445b (diff) | |
download | redmine-f2b17f77943959ea2a415f239ff50e2758c49859.tar.gz redmine-f2b17f77943959ea2a415f239ff50e2758c49859.zip |
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
Diffstat (limited to 'test/functional/workflows_controller_test.rb')
-rw-r--r-- | test/functional/workflows_controller_test.rb | 18 |
1 files changed, 9 insertions, 9 deletions
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'] } |