summaryrefslogtreecommitdiff
path: root/spec/controllers/groups/variables_controller_spec.rb
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-01-30 00:29:13 +0100
committerMatija Čupić <matteeyah@gmail.com>2018-02-05 18:58:19 +0100
commit9eb3bb5cffbd18a744be2553ab2be7cb7843b029 (patch)
treea5020e00226d4947b2dab3653b126c58980ff368 /spec/controllers/groups/variables_controller_spec.rb
parent13f0e18d2f85478c1f3e6a2851701e88d6f8378c (diff)
downloadgitlab-ce-9eb3bb5cffbd18a744be2553ab2be7cb7843b029.tar.gz
Change POST to PATCH requests in the controller specs
Diffstat (limited to 'spec/controllers/groups/variables_controller_spec.rb')
-rw-r--r--spec/controllers/groups/variables_controller_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/groups/variables_controller_spec.rb b/spec/controllers/groups/variables_controller_spec.rb
index 72a489febdb..a462d64c0f5 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,