Skip to content

Fix hard-coded IDs in failing metrics_dashboard_spec.rb

Stan Hu requested to merge sh-fix-failing-metrics-dashboard-spec into master

spec/requests/projects/metrics_dashboard_spec.rb was failing because it was expecting environment ID 99 not to exist, but if previous specs incremented the sequence then it's entirely possible for this spec to create an environment with that ID. We now use the max value to test this.

Closes #288023 (closed)

Edited by Stan Hu

Merge request reports