diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-01-30 01:10:05 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-01-30 01:10:05 +0100 |
commit | 57678abce48ad9cbc9729888bad02833fc3e51b6 (patch) | |
tree | 8e60995ef32cc0a34d625f4a8ccd07554dcbb098 | |
parent | 96f0a31c141a880b121c5357403895a9a14b6edd (diff) | |
download | gitlab-ce-dynamic-pipeline-variables-mysql.tar.gz |
Use specific group.id instead of groupdynamic-pipeline-variables-mysql
-rw-r--r-- | spec/controllers/groups/variables_controller_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/controllers/groups/variables_controller_spec.rb b/spec/controllers/groups/variables_controller_spec.rb index 72a489febdb..e73e5bde3a1 100644 --- a/spec/controllers/groups/variables_controller_spec.rb +++ b/spec/controllers/groups/variables_controller_spec.rb @@ -13,7 +13,7 @@ describe Groups::VariablesController do let!(:variable) { create(:ci_group_variable, group: group) } subject do - get :show, group_id: group, format: :json + get :show, group_id: group.id, format: :json end it 'renders the ci_group_variable as json' do @@ -29,7 +29,7 @@ describe Groups::VariablesController do context 'with invalid new variable parameters' do subject do post :update, - group_id: group, + group_id: group.id, variables_attributes: [{ id: variable.id, key: variable.key, value: 'other_value', protected: variable.protected?.to_s }, @@ -56,7 +56,7 @@ describe Groups::VariablesController do context 'with valid new variable parameters' do subject do post :update, - group_id: group, + group_id: group.id, variables_attributes: [{ id: variable.id, key: variable.key, value: 'other_value', protected: variable.protected?.to_s }, @@ -83,7 +83,7 @@ describe Groups::VariablesController do context 'with a deleted variable' do subject do post :update, - group_id: group, + group_id: group.id, variables_attributes: [{ id: variable.id, key: variable.key, value: variable.value, protected: variable.protected?.to_s, |