summaryrefslogtreecommitdiff
path: root/spec/services/ci/job_artifacts/create_service_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/ci/job_artifacts/create_service_spec.rb')
-rw-r--r--spec/services/ci/job_artifacts/create_service_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/services/ci/job_artifacts/create_service_spec.rb b/spec/services/ci/job_artifacts/create_service_spec.rb
index f71d7feb04a..73cb791f145 100644
--- a/spec/services/ci/job_artifacts/create_service_spec.rb
+++ b/spec/services/ci/job_artifacts/create_service_spec.rb
@@ -82,7 +82,11 @@ RSpec.describe Ci::JobArtifacts::CreateService, :clean_gitlab_redis_shared_state
before do
stub_artifacts_object_storage(JobArtifactUploader, direct_upload: true)
- allow(JobArtifactUploader).to receive(:generate_final_store_path).and_return(final_store_path)
+
+ allow(JobArtifactUploader)
+ .to receive(:generate_final_store_path)
+ .with(root_id: project.id)
+ .and_return(final_store_path)
end
it 'includes the authorize headers' do