Commit 65563c7b authored by Lin Jen-Shin's avatar Lin Jen-Shin

Now secret_variables_for would return the variables

parent 76e738fc
...@@ -1750,8 +1750,7 @@ describe Project, models: true do ...@@ -1750,8 +1750,7 @@ describe Project, models: true do
shared_examples 'ref is protected' do shared_examples 'ref is protected' do
it 'contains all the variables' do it 'contains all the variables' do
is_expected.to contain_exactly( is_expected.to contain_exactly(secret_variable, protected_variable)
*[secret_variable, protected_variable].map(&:to_runner_variable))
end end
end end
...@@ -1762,7 +1761,7 @@ describe Project, models: true do ...@@ -1762,7 +1761,7 @@ describe Project, models: true do
end end
it 'contains only the secret variables' do 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
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment