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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
6b955118
Commit
6b955118
authored
Feb 24, 2020
by
Alishan Ladhani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use have_gitlab_http_status for assertions on response status
parent
3435195f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
spec/controllers/admin/serverless/domains_controller_spec.rb
spec/controllers/admin/serverless/domains_controller_spec.rb
+9
-9
No files found.
spec/controllers/admin/serverless/domains_controller_spec.rb
View file @
6b955118
...
...
@@ -15,7 +15,7 @@ describe Admin::Serverless::DomainsController do
it
'responds with 404'
do
get
:index
expect
(
response
.
status
).
to
eq
(
404
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
end
end
...
...
@@ -33,7 +33,7 @@ describe Admin::Serverless::DomainsController do
it
'responds with 404'
do
get
:index
expect
(
response
.
status
).
to
eq
(
404
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
end
end
...
...
@@ -81,7 +81,7 @@ describe Admin::Serverless::DomainsController do
it
'responds with 404'
do
post
:create
,
params:
{
pages_domain:
create_params
}
expect
(
response
.
status
).
to
eq
(
404
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
end
end
...
...
@@ -98,7 +98,7 @@ describe Admin::Serverless::DomainsController do
it
'responds with 404'
do
post
:create
,
params:
{
pages_domain:
create_params
}
expect
(
response
.
status
).
to
eq
(
404
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
end
end
...
...
@@ -169,7 +169,7 @@ describe Admin::Serverless::DomainsController do
it
'responds with 404'
do
put
:update
,
params:
{
id:
domain
.
id
,
pages_domain:
update_params
}
expect
(
response
.
status
).
to
eq
(
404
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
end
end
...
...
@@ -186,7 +186,7 @@ describe Admin::Serverless::DomainsController do
it
'responds with 404'
do
put
:update
,
params:
{
id:
domain
.
id
,
pages_domain:
update_params
}
expect
(
response
.
status
).
to
eq
(
404
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
end
end
...
...
@@ -221,7 +221,7 @@ describe Admin::Serverless::DomainsController do
it
'returns 404'
do
put
:update
,
params:
{
id:
0
,
pages_domain:
update_params
}
expect
(
response
.
status
).
to
eq
(
404
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
end
end
...
...
@@ -247,7 +247,7 @@ describe Admin::Serverless::DomainsController do
it
'responds with 404'
do
post
:verify
,
params:
{
id:
domain
.
id
}
expect
(
response
.
status
).
to
eq
(
404
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
end
end
...
...
@@ -272,7 +272,7 @@ describe Admin::Serverless::DomainsController do
it
'responds with 404'
do
post
:verify
,
params:
{
id:
domain
.
id
}
expect
(
response
.
status
).
to
eq
(
404
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
end
end
...
...
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