diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-05-18 15:05:29 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-05-18 15:05:29 +0300 |
commit | d9a3f020be570f135c0ce7c7676b4c1ed332ce1d (patch) | |
tree | b9c28899bdef3238a1def24fda7a3141565882f3 /spec/models | |
parent | 9f7deb85b5d6937e6cf7068b864f49693b4a2623 (diff) |
Separate persisted and runtime pipeline variables
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/ci/build_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb index dc810489011..d7659a9cb58 100644 --- a/spec/models/ci/build_spec.rb +++ b/spec/models/ci/build_spec.rb @@ -629,6 +629,14 @@ describe Ci::Build do it { is_expected.to eq('review/host') } end + + context 'when using persisted variables' do + let(:build) do + create(:ci_build, environment: 'review/x$CI_BUILD_ID') + end + + it { is_expected.to eq('review/x') } + end end describe '#starts_environment?' do |