Commit e89b0732 authored by rpereira2's avatar rpereira2

Do not hardcode project and namespace name in url

The names can change in different runs of the spec.
parent 5ee7c419
...@@ -17,9 +17,9 @@ describe Projects::Environments::PrometheusApiController do ...@@ -17,9 +17,9 @@ describe Projects::Environments::PrometheusApiController do
let(:expected_params) do let(:expected_params) do
ActionController::Parameters.new( ActionController::Parameters.new(
"query" => "1", "query" => "1",
"id" => "1", "id" => environment.id.to_s,
"namespace_id" => "namespace1", "namespace_id" => project.namespace.name,
"project_id" => "project1", "project_id" => project.name,
"proxy_path" => "query", "proxy_path" => "query",
"controller" => "projects/environments/prometheus_api", "controller" => "projects/environments/prometheus_api",
"action" => "proxy" "action" => "proxy"
......
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