Commit 078ebbe1 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'sh-fix-failing-metrics-dashboard-spec' into 'master'

Fix hard-coded IDs in failing metrics_dashboard_spec.rb

See merge request gitlab-org/gitlab!48533
parents 60dc1611 b5df15d8
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment