diff options
Diffstat (limited to 'spec/models/project_spec.rb')
-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 |