summaryrefslogtreecommitdiff
path: root/spec/controllers
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-05-13 15:08:23 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-13 15:08:23 +0000
commit868e4e69bba7d3ddc2bf4899ee45d6c377a8e536 (patch)
tree921098180de1fbf8e58cfaeade0d0999177b0ce6 /spec/controllers
parent41e8b05e8d06f4b13a984e4a3ad26e9a48294543 (diff)
downloadgitlab-ce-868e4e69bba7d3ddc2bf4899ee45d6c377a8e536.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/concerns/metrics_dashboard_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/concerns/metrics_dashboard_spec.rb b/spec/controllers/concerns/metrics_dashboard_spec.rb
index 3a6a037ac9a..f6705ba6acc 100644
--- a/spec/controllers/concerns/metrics_dashboard_spec.rb
+++ b/spec/controllers/concerns/metrics_dashboard_spec.rb
@@ -134,10 +134,10 @@ describe MetricsDashboard do
it 'adds starred dashboard information and sorts the list' do
all_dashboards = json_response['all_dashboards'].map { |dashboard| dashboard.slice('display_name', 'starred', 'user_starred_path') }
expected_response = [
- { "display_name" => "errors.yml", "starred" => true, 'user_starred_path' => nil },
- { "display_name" => "test.yml", "starred" => true, 'user_starred_path' => nil },
+ { "display_name" => "Default", "starred" => false, 'user_starred_path' => nil },
{ "display_name" => "anomaly.yml", "starred" => false, 'user_starred_path' => nil },
- { "display_name" => "Default", "starred" => false, 'user_starred_path' => nil }
+ { "display_name" => "errors.yml", "starred" => true, 'user_starred_path' => nil },
+ { "display_name" => "test.yml", "starred" => true, 'user_starred_path' => nil }
]
expect(all_dashboards).to eql expected_response