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
3f51da79
Commit
3f51da79
authored
Apr 22, 2019
by
syasonik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken spec
parent
c0e5c785
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
spec/lib/gitlab/metrics_dashboard/service_spec.rb
spec/lib/gitlab/metrics_dashboard/service_spec.rb
+2
-4
No files found.
spec/lib/gitlab/metrics_dashboard/service_spec.rb
View file @
3f51da79
...
...
@@ -26,10 +26,8 @@ describe Gitlab::MetricsDashboard::Service, :use_clean_rails_memory_store_cachin
end
context
'when the dashboard is configured incorrectly'
do
let
(
:bad_dashboard
)
{
{}
}
before
do
allow
(
described_class
).
to
receive
(
:system_dashboard
).
and_return
(
bad_dashboard
)
allow
(
YAML
).
to
receive
(
:load_file
).
and_return
({}
)
end
it
'returns an appropriate message and status code'
do
...
...
@@ -37,7 +35,7 @@ describe Gitlab::MetricsDashboard::Service, :use_clean_rails_memory_store_cachin
expect
(
result
.
keys
).
to
contain_exactly
(
:message
,
:http_status
,
:status
)
expect
(
result
[
:status
]).
to
eq
(
:error
)
expect
(
result
[
:status
]).
to
eq
(
:unprocessable_entity
)
expect
(
result
[
:
http_
status
]).
to
eq
(
:unprocessable_entity
)
end
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