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 02:44:53 +0300
committerMatija Čupić <matteeyah@gmail.com>2018-02-05 20:58:19 +0300
commitb48d8c8ad0bb2874db6b4c9accb3bebd19e9f2c8 (patch)
treeb3639bb715f458a6023e7f4556cb3ffcb4167aa8 /spec/controllers/projects
parent9eb3bb5cffbd18a744be2553ab2be7cb7843b029 (diff)
Return all variables after UPDATE
Diffstat (limited to 'spec/controllers/projects')
-rw-r--r--spec/controllers/projects/variables_controller_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/controllers/projects/variables_controller_spec.rb b/spec/controllers/projects/variables_controller_spec.rb
index ab8915c58d0..ddba6cd83f4 100644
--- a/spec/controllers/projects/variables_controller_spec.rb
+++ b/spec/controllers/projects/variables_controller_spec.rb
@@ -87,6 +87,12 @@ describe Projects::VariablesController do
expect(response).to have_gitlab_http_status(:ok)
end
+
+ it 'has all variables in response' do
+ subject
+
+ expect(response.body).to include(project.variables.reload.to_json)
+ end
end
context 'with a deleted variable' do
@@ -110,6 +116,12 @@ describe Projects::VariablesController do
expect(response).to have_gitlab_http_status(:ok)
end
+
+ it 'has all variables in response' do
+ subject
+
+ expect(response.body).to include(project.variables.reload.to_json)
+ end
end
end
end