Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
9eb3bb5c
Commit
9eb3bb5c
authored
Jan 30, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change POST to PATCH requests in the controller specs
parent
13f0e18d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
spec/controllers/groups/variables_controller_spec.rb
spec/controllers/groups/variables_controller_spec.rb
+3
-3
spec/controllers/projects/variables_controller_spec.rb
spec/controllers/projects/variables_controller_spec.rb
+3
-3
No files found.
spec/controllers/groups/variables_controller_spec.rb
View file @
9eb3bb5c
...
...
@@ -28,7 +28,7 @@ describe Groups::VariablesController do
context
'with invalid new variable parameters'
do
subject
do
p
ost
:update
,
p
atch
: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
p
ost
:update
,
p
atch
: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
p
ost
:update
,
p
atch
:update
,
group_id:
group
,
variables_attributes:
[{
id:
variable
.
id
,
key:
variable
.
key
,
value:
variable
.
value
,
...
...
spec/controllers/projects/variables_controller_spec.rb
View file @
9eb3bb5c
...
...
@@ -37,7 +37,7 @@ describe Projects::VariablesController do
context
'with invalid new variable parameters'
do
subject
do
p
ost
:update
,
p
atch
: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
p
ost
:update
,
p
atch
: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
p
ost
:update
,
p
atch
:update
,
namespace_id:
project
.
namespace
.
to_param
,
project_id:
project
,
variables_attributes:
[{
id:
variable
.
id
,
key:
variable
.
key
,
value:
variable
.
value
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment