diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-02 00:18:50 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-02 00:18:50 +0000 |
commit | 1bde803c0dc057fefff36be2104c0ae6b5cb1336 (patch) | |
tree | d3f52d98da59d5604aa42016c3c11d2f1596afc8 /spec/controllers/projects/artifacts_controller_spec.rb | |
parent | 133febf6d6c7b8f4c63002e065762cb3eec9ba15 (diff) | |
download | gitlab-ce-1bde803c0dc057fefff36be2104c0ae6b5cb1336.tar.gz |
Add latest changes from gitlab-org/security/gitlab@15-9-stable-ee
Diffstat (limited to 'spec/controllers/projects/artifacts_controller_spec.rb')
-rw-r--r-- | spec/controllers/projects/artifacts_controller_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/controllers/projects/artifacts_controller_spec.rb b/spec/controllers/projects/artifacts_controller_spec.rb index 32cd10d9805..c707b5dc39d 100644 --- a/spec/controllers/projects/artifacts_controller_spec.rb +++ b/spec/controllers/projects/artifacts_controller_spec.rb @@ -244,7 +244,9 @@ RSpec.describe Projects::ArtifactsController, feature_category: :build_artifacts let(:job) { create(:ci_build, :success, :trace_artifact, pipeline: pipeline) } before do - create(:ci_job_variable, key: 'CI_DEBUG_TRACE', value: 'true', job: job) + allow_next_found_instance_of(Ci::Build) do |build| + allow(build).to receive(:debug_mode?).and_return(true) + end end context 'when the user does not have update_build permissions' do |