diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-02-27 11:21:40 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-02-27 11:21:40 +0100 |
commit | d25c4803f4429d5aeb2ec1eeb920da216d33f024 (patch) | |
tree | 4dee9c444751a34fec185505c70d5a02cf6f1520 /spec | |
parent | 7bb0c79b8e0c3b28d79a9471ed516651abfa1a6c (diff) | |
download | gitlab-ce-d25c4803f4429d5aeb2ec1eeb920da216d33f024.tar.gz |
Fix pipeline build specs related to variables order
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/ci/build_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb index 2b6b6a61182..43fba1349e3 100644 --- a/spec/models/ci/build_spec.rb +++ b/spec/models/ci/build_spec.rb @@ -1854,7 +1854,8 @@ describe Ci::Build do end allow_any_instance_of(Ci::Pipeline) - .to receive(:predefined_variables) { [pipeline_pre_var] } + .to receive(:predefined_variables) + .and_return([project_pre_var] + [pipeline_pre_var]) end it do |