Commit 6efeba16 authored by Pedro Pombeiro's avatar Pedro Pombeiro

Add test for sorting escaped variable reference

parent 5430a99b
......@@ -143,6 +143,14 @@ RSpec.describe Gitlab::Ci::Variables::Collection::Sort do
{ key: 'variable3', value: 'key$variable$variable2', raw: true }
],
validation_result: nil
},
"variable containing escaped variable reference": {
variables: [
{ key: 'variable_a', value: 'value' },
{ key: 'variable_b', value: '$$variable_a' },
{ key: 'variable_c', value: '$variable_b' }
],
validation_result: nil
}
}
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