Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-01-30 04:11:17 +0300
committerMatija Čupić <matteeyah@gmail.com>2018-02-05 20:58:20 +0300
commit04263b9f3be22bd97249162d9d3e27829c639d07 (patch)
tree35ee2f322d2275caba9647ab0f91dabb0c4bf39d /spec/controllers/groups
parent9be519c199b01d4b4b1c69ec4d74a1e99345eb47 (diff)
Add GroupVariableSerializer for Ci::GroupVariable
Diffstat (limited to 'spec/controllers/groups')
-rw-r--r--spec/controllers/groups/variables_controller_spec.rb6
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