From 57678abce48ad9cbc9729888bad02833fc3e51b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20=C4=8Cupi=C4=87?= Date: Tue, 30 Jan 2018 01:10:05 +0100 Subject: Use specific group.id instead of group --- spec/controllers/groups/variables_controller_spec.rb | 8 ++++---- 1 file 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, -- cgit v1.2.1