diff options
author | rpereira2 <rpereira@gitlab.com> | 2019-04-17 12:46:11 +0300 |
---|---|---|
committer | syasonik <syasonik@gitlab.com> | 2019-04-24 13:23:03 +0300 |
commit | 4a9002cee3c80a9de24f01a5eb313ff17d2e4931 (patch) | |
tree | 922be7c059a53487e58025bf6836a2009d9c19c0 /spec/controllers | |
parent | b209fb6fb21369b381e4a538f2e46ef1b6579aed (diff) |
Inherit from BaseService
Change MetricsDashboard::Service to inherit from BaseService so that
it can reuse methods like initialize, success, error.
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/projects/environments_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/projects/environments_controller_spec.rb b/spec/controllers/projects/environments_controller_spec.rb index 02441385da0..6c3aad55622 100644 --- a/spec/controllers/projects/environments_controller_spec.rb +++ b/spec/controllers/projects/environments_controller_spec.rb @@ -479,8 +479,8 @@ describe Projects::EnvironmentsController do get :metrics_dashboard, params: environment_params(format: :json) expect(response).to have_gitlab_http_status(:ok) - expect(json_response).to include('dashboard', 'order', 'panel_groups') - expect(json_response['panel_groups']).to all( include('group', 'priority', 'panels') ) + expect(json_response.keys).to contain_exactly('dashboard', 'status') + expect(json_response['dashboard']).to be_an_instance_of(Hash) end end end |