diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-06-01 00:12:42 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-06-01 00:12:42 +0800 |
commit | 65563c7b1b64d3ab7133896ba291a3efc7afba86 (patch) | |
tree | c44a4601470cb916c27ae7f300bb42a296f82486 /spec/models | |
parent | 76e738fc0ec65513cb4d92a8206109184c74a381 (diff) | |
download | gitlab-ce-65563c7b1b64d3ab7133896ba291a3efc7afba86.tar.gz |
Now secret_variables_for would return the variables
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/project_spec.rb | 5 |
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 |