summaryrefslogtreecommitdiff
path: root/spec/controllers/concerns/metrics_dashboard_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/concerns/metrics_dashboard_spec.rb')
-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