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
b78950e5
Commit
b78950e5
authored
Jan 22, 2020
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable cop HaveGitlabHttpStatus in feature specs
818 files inspected, 14 offenses detected, 14 offenses corrected
parent
ca07f8b1
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
16 additions
and
15 deletions
+16
-15
.rubocop.yml
.rubocop.yml
+2
-1
ee/spec/features/groups/dependency_proxy_spec.rb
ee/spec/features/groups/dependency_proxy_spec.rb
+2
-2
ee/spec/features/groups/packages_spec.rb
ee/spec/features/groups/packages_spec.rb
+2
-2
ee/spec/features/groups/usage_quotas_spec.rb
ee/spec/features/groups/usage_quotas_spec.rb
+2
-2
ee/spec/features/projects/services/user_activates_github_spec.rb
.../features/projects/services/user_activates_github_spec.rb
+1
-1
ee/spec/features/projects/settings/protected_environments_spec.rb
...features/projects/settings/protected_environments_spec.rb
+3
-3
spec/features/profiles/password_spec.rb
spec/features/profiles/password_spec.rb
+2
-2
spec/features/projects/badges/coverage_spec.rb
spec/features/projects/badges/coverage_spec.rb
+1
-1
spec/features/projects/tags/user_views_tags_spec.rb
spec/features/projects/tags/user_views_tags_spec.rb
+1
-1
No files found.
.rubocop.yml
View file @
b78950e5
...
...
@@ -348,10 +348,11 @@ RSpec/HaveGitlabHttpStatus:
Include
:
-
'
spec/support/shared_examples/**/*'
-
'
ee/spec/support/shared_examples/**/*'
-
'
spec/features/**/*'
-
'
ee/spec/features/**/*'
Style/MultilineWhenThen
:
Enabled
:
false
Style/FloatDivision
:
Enabled
:
false
\ No newline at end of file
ee/spec/features/groups/dependency_proxy_spec.rb
View file @
b78950e5
...
...
@@ -91,7 +91,7 @@ describe 'Group Dependency Proxy' do
visit
path
expect
(
page
).
to
have_gitlab_http_status
(
404
)
expect
(
page
).
to
have_gitlab_http_status
(
:not_found
)
end
end
...
...
@@ -101,7 +101,7 @@ describe 'Group Dependency Proxy' do
visit
path
expect
(
page
).
to
have_gitlab_http_status
(
404
)
expect
(
page
).
to
have_gitlab_http_status
(
:not_found
)
end
end
end
...
...
ee/spec/features/groups/packages_spec.rb
View file @
b78950e5
...
...
@@ -28,7 +28,7 @@ describe 'Group Packages' do
it
'gives 404'
do
visit_group_packages
expect
(
page
).
to
have_gitlab_http_status
(
404
)
expect
(
page
).
to
have_gitlab_http_status
(
:not_found
)
end
end
...
...
@@ -40,7 +40,7 @@ describe 'Group Packages' do
it
'gives 404'
do
visit_group_packages
expect
(
page
).
to
have_gitlab_http_status
(
404
)
expect
(
page
).
to
have_gitlab_http_status
(
:not_found
)
end
end
...
...
ee/spec/features/groups/usage_quotas_spec.rb
View file @
b78950e5
...
...
@@ -54,7 +54,7 @@ describe 'Groups > Usage Quotas' do
it
'renders a 404'
do
visit_pipeline_quota_page
expect
(
page
).
to
have_http_status
(
:not_found
)
expect
(
page
).
to
have_
gitlab_
http_status
(
:not_found
)
end
end
end
...
...
@@ -151,7 +151,7 @@ describe 'Groups > Usage Quotas' do
it
'does not show subproject'
do
visit_pipeline_quota_page
expect
(
page
).
to
have_http_status
(
:not_found
)
expect
(
page
).
to
have_
gitlab_
http_status
(
:not_found
)
end
end
...
...
ee/spec/features/projects/services/user_activates_github_spec.rb
View file @
b78950e5
...
...
@@ -21,7 +21,7 @@ describe 'User activates GitHub Service' do
it
'renders 404 when trying to access service settings directly'
do
visit
edit_project_service_path
(
project
,
:github
)
expect
(
page
).
to
have_gitlab_http_status
(
404
)
expect
(
page
).
to
have_gitlab_http_status
(
:not_found
)
end
end
...
...
ee/spec/features/projects/settings/protected_environments_spec.rb
View file @
b78950e5
...
...
@@ -28,7 +28,7 @@ describe 'Protected Environments' do
end
it
'does not have access to Protected Environments settings'
do
expect
(
page
).
to
have_gitlab_http_status
(
404
)
expect
(
page
).
to
have_gitlab_http_status
(
:not_found
)
end
end
...
...
@@ -40,7 +40,7 @@ describe 'Protected Environments' do
end
it
'has access to Protected Environments settings'
do
expect
(
page
).
to
have_gitlab_http_status
(
200
)
expect
(
page
).
to
have_gitlab_http_status
(
:ok
)
end
it
'allows seeing a list of protected environments'
do
...
...
@@ -103,7 +103,7 @@ describe 'Protected Environments' do
it
'shows setting page correctly'
do
visit
project_settings_ci_cd_path
(
project
)
expect
(
page
).
to
have_gitlab_http_status
(
200
)
expect
(
page
).
to
have_gitlab_http_status
(
:ok
)
end
end
end
...
...
spec/features/profiles/password_spec.rb
View file @
b78950e5
...
...
@@ -63,7 +63,7 @@ describe 'Profile > Password' do
visit
edit_profile_password_path
expect
(
page
).
to
have_gitlab_http_status
(
404
)
expect
(
page
).
to
have_gitlab_http_status
(
:not_found
)
end
end
...
...
@@ -73,7 +73,7 @@ describe 'Profile > Password' do
it
'renders 404'
do
visit
edit_profile_password_path
expect
(
page
).
to
have_gitlab_http_status
(
404
)
expect
(
page
).
to
have_gitlab_http_status
(
:not_found
)
end
end
end
...
...
spec/features/projects/badges/coverage_spec.rb
View file @
b78950e5
...
...
@@ -54,7 +54,7 @@ describe 'test coverage badge' do
it
'user requests test coverage badge image'
do
show_test_coverage_badge
expect
(
page
).
to
have_gitlab_http_status
(
404
)
expect
(
page
).
to
have_gitlab_http_status
(
:not_found
)
end
end
...
...
spec/features/projects/tags/user_views_tags_spec.rb
View file @
b78950e5
...
...
@@ -7,7 +7,7 @@ describe 'User views tags', :feature do
it
do
visit
project_tags_path
(
project
,
format: :atom
)
expect
(
page
).
to
have_gitlab_http_status
(
200
)
expect
(
page
).
to
have_gitlab_http_status
(
:ok
)
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