Commit 0c30290a authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch '9521-fix-env-route-specs' into 'master'

Add nested param to ee env controller specs

Closes #9521

See merge request gitlab-org/gitlab-ee!9375
parents f217d520 945a5102
...@@ -41,7 +41,7 @@ describe Projects::EnvironmentsController do ...@@ -41,7 +41,7 @@ describe Projects::EnvironmentsController do
before do before do
stub_licensed_features(deploy_board: true) stub_licensed_features(deploy_board: true)
get :index, params: environment_params(format: :json, scope: :available) get :index, params: environment_params(format: :json, nested: true, scope: :available)
end end
it 'responds with matching schema' do it 'responds with matching schema' do
...@@ -63,7 +63,7 @@ describe Projects::EnvironmentsController do ...@@ -63,7 +63,7 @@ describe Projects::EnvironmentsController do
before do before do
stub_licensed_features(deploy_board: false) stub_licensed_features(deploy_board: false)
get :index, params: environment_params(format: :json) get :index, params: environment_params(format: :json, nested: true)
end end
it 'does not return the rollout_status_path attribute' do it 'does not return the rollout_status_path attribute' do
......
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