diff options
Diffstat (limited to 'spec/requests/projects/metrics_dashboard_spec.rb')
-rw-r--r-- | spec/requests/projects/metrics_dashboard_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/projects/metrics_dashboard_spec.rb b/spec/requests/projects/metrics_dashboard_spec.rb index 0a4100f2bf5..c248463faa3 100644 --- a/spec/requests/projects/metrics_dashboard_spec.rb +++ b/spec/requests/projects/metrics_dashboard_spec.rb @@ -70,7 +70,7 @@ RSpec.describe 'Projects::MetricsDashboardController' do context 'when query param environment does not exist' do it 'responds with 404' do - send_request(environment: 99) + send_request(environment: non_existing_record_id) expect(response).to have_gitlab_http_status(:not_found) end end @@ -105,7 +105,7 @@ RSpec.describe 'Projects::MetricsDashboardController' do context 'when query param environment does not exist' do it 'responds with 404' do - send_request(dashboard_path: dashboard_path, environment: 99) + send_request(dashboard_path: dashboard_path, environment: non_existing_record_id) expect(response).to have_gitlab_http_status(:not_found) end end |