Commit 945a5102 authored by syasonik's avatar syasonik

Add nested param to ee env controller specs

parent cf886916
...@@ -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