diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-01-30 04:11:17 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-05 20:58:20 +0300 |
commit | 04263b9f3be22bd97249162d9d3e27829c639d07 (patch) | |
tree | 35ee2f322d2275caba9647ab0f91dabb0c4bf39d /spec/controllers/groups | |
parent | 9be519c199b01d4b4b1c69ec4d74a1e99345eb47 (diff) |
Add GroupVariableSerializer for Ci::GroupVariable
Diffstat (limited to 'spec/controllers/groups')
-rw-r--r-- | spec/controllers/groups/variables_controller_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/groups/variables_controller_spec.rb b/spec/controllers/groups/variables_controller_spec.rb index 4927a9ee402..f6bcc68f9ad 100644 --- a/spec/controllers/groups/variables_controller_spec.rb +++ b/spec/controllers/groups/variables_controller_spec.rb @@ -19,7 +19,7 @@ describe Groups::VariablesController do it 'renders the ci_group_variable as json' do subject - expect(response.body).to include(variable.to_json) + expect(response).to match_response_schema('variable') end end @@ -82,7 +82,7 @@ describe Groups::VariablesController do it 'has all variables in response' do subject - expect(response.body).to include(group.variables.reload.to_json) + expect(response).to match_response_schema('variable') end end @@ -111,7 +111,7 @@ describe Groups::VariablesController do it 'has all variables in response' do subject - expect(response.body).to include(group.variables.reload.to_json) + expect(json_response['variables'].count).to eq(0) end end end |