diff options
Diffstat (limited to 'spec/lib/gitlab/ci/variables/builder_spec.rb')
-rw-r--r-- | spec/lib/gitlab/ci/variables/builder_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/lib/gitlab/ci/variables/builder_spec.rb b/spec/lib/gitlab/ci/variables/builder_spec.rb index 6ab2089cce8..4833ccf9093 100644 --- a/spec/lib/gitlab/ci/variables/builder_spec.rb +++ b/spec/lib/gitlab/ci/variables/builder_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -RSpec.describe Gitlab::Ci::Variables::Builder do +RSpec.describe Gitlab::Ci::Variables::Builder, :clean_gitlab_redis_cache do include Ci::TemplateHelpers let_it_be(:group) { create(:group) } let_it_be(:project) { create(:project, :repository, namespace: group) } @@ -26,13 +26,13 @@ RSpec.describe Gitlab::Ci::Variables::Builder do { key: 'CI_JOB_NAME', value: job.name }, { key: 'CI_JOB_STAGE', - value: job.stage }, + value: job.stage_name }, { key: 'CI_NODE_TOTAL', value: '1' }, { key: 'CI_BUILD_NAME', value: job.name }, { key: 'CI_BUILD_STAGE', - value: job.stage }, + value: job.stage_name }, { key: 'CI', value: 'true' }, { key: 'GITLAB_CI', @@ -138,11 +138,11 @@ RSpec.describe Gitlab::Ci::Variables::Builder do { key: 'GITLAB_USER_ID', value: user.id.to_s }, { key: 'GITLAB_USER_EMAIL', - value: user.email }, + value: user.email }, { key: 'GITLAB_USER_LOGIN', - value: user.username }, + value: user.username }, { key: 'GITLAB_USER_NAME', - value: user.name } + value: user.name } ].map { |var| var.merge(public: true, masked: false) } end |