diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-01-30 00:29:13 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-05 18:58:19 +0100 |
commit | 9eb3bb5cffbd18a744be2553ab2be7cb7843b029 (patch) | |
tree | a5020e00226d4947b2dab3653b126c58980ff368 /spec/controllers/projects/variables_controller_spec.rb | |
parent | 13f0e18d2f85478c1f3e6a2851701e88d6f8378c (diff) | |
download | gitlab-ce-9eb3bb5cffbd18a744be2553ab2be7cb7843b029.tar.gz |
Change POST to PATCH requests in the controller specs
Diffstat (limited to 'spec/controllers/projects/variables_controller_spec.rb')
-rw-r--r-- | spec/controllers/projects/variables_controller_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/projects/variables_controller_spec.rb b/spec/controllers/projects/variables_controller_spec.rb index f6e15ee6147..ab8915c58d0 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, |