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
ba7551cb
Commit
ba7551cb
authored
Nov 02, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix broken references to page.status_code
parent
925c9d7e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
10 deletions
+20
-10
spec/features/admin/admin_audit_logs_spec.rb
spec/features/admin/admin_audit_logs_spec.rb
+4
-2
spec/features/groups/audit_events_spec.rb
spec/features/groups/audit_events_spec.rb
+4
-2
spec/features/projects/audit_events_spec.rb
spec/features/projects/audit_events_spec.rb
+8
-4
spec/features/projects/mirror_spec.rb
spec/features/projects/mirror_spec.rb
+4
-2
No files found.
spec/features/admin/admin_audit_logs_spec.rb
View file @
ba7551cb
...
...
@@ -15,9 +15,11 @@ describe 'Admin::AuditLogs', :js do
end
it
'returns 404'
do
visit
admin_audit_logs_path
reqs
=
inspect_requests
do
visit
admin_audit_logs_path
end
expect
(
page
.
status_code
).
to
eq
(
404
)
expect
(
reqs
.
first
.
status_code
).
to
eq
(
404
)
end
end
...
...
spec/features/groups/audit_events_spec.rb
View file @
ba7551cb
...
...
@@ -17,9 +17,11 @@ feature 'Groups > Audit Events', :js do
end
it
'returns 404'
do
visit
group_audit_events_path
(
group
)
reqs
=
inspect_requests
do
visit
group_audit_events_path
(
group
)
end
expect
(
page
.
status_code
).
to
eq
(
404
)
expect
(
reqs
.
first
.
status_code
).
to
eq
(
404
)
end
it
'does not have Audit Events button in head nav bar'
do
...
...
spec/features/projects/audit_events_spec.rb
View file @
ba7551cb
...
...
@@ -16,9 +16,11 @@ feature 'Projects > Audit Events', :js do
end
it
'returns 404'
do
visit
project_audit_events_path
(
project
)
reqs
=
inspect_requests
do
visit
project_audit_events_path
(
project
)
end
expect
(
page
.
status_code
).
to
eq
(
404
)
expect
(
reqs
.
first
.
status_code
).
to
eq
(
404
)
end
it
'does not have Audit Events button in head nav bar'
do
...
...
@@ -37,9 +39,11 @@ feature 'Projects > Audit Events', :js do
end
it
'returns 200'
do
visit
project_audit_events_path
(
project
)
reqs
=
inspect_requests
do
visit
project_audit_events_path
(
project
)
end
expect
(
page
.
status_code
).
to
eq
(
200
)
expect
(
reqs
.
first
.
status_code
).
to
eq
(
200
)
end
it
'does not have Audit Events button in head nav bar'
do
...
...
spec/features/projects/mirror_spec.rb
View file @
ba7551cb
...
...
@@ -18,9 +18,11 @@ feature 'Project mirror', :js do
end
it
'returns 404'
do
visit
project_mirror_path
(
project
)
reqs
=
inspect_requests
do
visit
project_mirror_path
(
project
)
end
expect
(
page
.
status_code
).
to
eq
(
404
)
expect
(
reqs
.
first
.
status_code
).
to
eq
(
404
)
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