summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-06-01 00:12:42 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-06-01 00:12:42 +0800
commit65563c7b1b64d3ab7133896ba291a3efc7afba86 (patch)
treec44a4601470cb916c27ae7f300bb42a296f82486 /spec/models
parent76e738fc0ec65513cb4d92a8206109184c74a381 (diff)
downloadgitlab-ce-65563c7b1b64d3ab7133896ba291a3efc7afba86.tar.gz
Now secret_variables_for would return the variables
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/project_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index 36140b519d6..a953faaaedf 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -1750,8 +1750,7 @@ describe Project, models: true do
shared_examples 'ref is protected' do
it 'contains all the variables' do
- is_expected.to contain_exactly(
- *[secret_variable, protected_variable].map(&:to_runner_variable))
+ is_expected.to contain_exactly(secret_variable, protected_variable)
end
end
@@ -1762,7 +1761,7 @@ describe Project, models: true do
end
it 'contains only the secret variables' do
- is_expected.to contain_exactly(secret_variable.to_runner_variable)
+ is_expected.to contain_exactly(secret_variable)
end
end