diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-03-27 13:05:29 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-03-27 13:05:29 +0200 |
commit | da6bfd9b801c4d1c91593c6b4a755b097b644ab0 (patch) | |
tree | b9685a40e2d8e4b791cb1eb2e7759bf9bb994abd /spec/models | |
parent | dbe9e0dff8d68c55753f22724d8154805f546ea3 (diff) | |
download | gitlab-ce-da6bfd9b801c4d1c91593c6b4a755b097b644ab0.tar.gz |
Decouple build variables from persisted environment
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/ci/build_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb index 6a45169c6a8..f4d3e57b225 100644 --- a/spec/models/ci/build_spec.rb +++ b/spec/models/ci/build_spec.rb @@ -1998,7 +1998,7 @@ describe Ci::Build do end end - describe '#evaluable_variables' do + describe '#scoped_variables' do context 'when build has not been persisted yet' do let(:build) do described_class.new( @@ -2014,7 +2014,7 @@ describe Ci::Build do expect(build).to be_valid expect(build).not_to be_persisted - variables = build.evaluable_variables + build.scoped_variables expect(build).not_to be_persisted end @@ -2026,7 +2026,7 @@ describe Ci::Build do CI_COMMIT_REF_SLUG CI_JOB_STAGE] - variables = build.evaluable_variables + variables = build.scoped_variables variables.map { |env| env[:key] }.tap do |names| expect(names).to include(*keys) @@ -2046,7 +2046,7 @@ describe Ci::Build do CI_REPOSITORY_URL CI_ENVIRONMENT_URL] - build.evaluable_variables.map { |env| env[:key] }.tap do |names| + build.scoped_variables.map { |env| env[:key] }.tap do |names| expect(names).not_to include(*keys) end end |