diff --git a/spec/controllers/groups/variables_controller_spec.rb b/spec/controllers/groups/variables_controller_spec.rb index 72a489febdb3893c41424fe7cfd9790ee64c0313..a462d64c0f5a17c837655c0dd5969d800c5f39c6 100644 --- a/spec/controllers/groups/variables_controller_spec.rb +++ b/spec/controllers/groups/variables_controller_spec.rb @@ -28,7 +28,7 @@ describe Groups::VariablesController do context 'with invalid new variable parameters' do subject do - post :update, + patch :update, group_id: group, variables_attributes: [{ id: variable.id, key: variable.key, value: 'other_value', @@ -55,7 +55,7 @@ describe Groups::VariablesController do context 'with valid new variable parameters' do subject do - post :update, + patch :update, group_id: group, variables_attributes: [{ id: variable.id, key: variable.key, value: 'other_value', @@ -82,7 +82,7 @@ describe Groups::VariablesController do context 'with a deleted variable' do subject do - post :update, + patch :update, group_id: group, variables_attributes: [{ id: variable.id, key: variable.key, value: variable.value, diff --git a/spec/controllers/projects/variables_controller_spec.rb b/spec/controllers/projects/variables_controller_spec.rb index f6e15ee61479054a18e54ea3bc5f25e28cc99251..ab8915c58d0468cbb6f4fc40363144f15f573958 100644 --- a/spec/controllers/projects/variables_controller_spec.rb +++ b/spec/controllers/projects/variables_controller_spec.rb @@ -37,7 +37,7 @@ describe Projects::VariablesController do context 'with invalid new variable parameters' do subject do - post :update, + patch :update, namespace_id: project.namespace.to_param, project_id: project, variables_attributes: [{ id: variable.id, key: variable.key, value: 'other_value', @@ -64,7 +64,7 @@ describe Projects::VariablesController do context 'with valid new variable parameters' do subject do - post :update, + patch :update, namespace_id: project.namespace.to_param, project_id: project, variables_attributes: [{ id: variable.id, key: variable.key, value: 'other_value', @@ -91,7 +91,7 @@ describe Projects::VariablesController do context 'with a deleted variable' do subject do - post :update, + patch :update, namespace_id: project.namespace.to_param, project_id: project, variables_attributes: [{ id: variable.id, key: variable.key, value: variable.value,