From 23ca10b914987caba154f8f0f8b89ed880d1f808 Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Fri, 2 Feb 2018 23:31:06 +0900 Subject: Alessio catches: Test fix --- spec/factories/ci/job_artifacts.rb | 2 +- spec/workers/create_trace_artifact_worker_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/factories/ci/job_artifacts.rb b/spec/factories/ci/job_artifacts.rb index 7ee379ca2ec..8dd07d8ba16 100644 --- a/spec/factories/ci/job_artifacts.rb +++ b/spec/factories/ci/job_artifacts.rb @@ -32,7 +32,7 @@ FactoryBot.define do after(:build) do |artifact, evaluator| artifact.file = fixture_file_upload( - Rails.root.join('spec/fixtures/trace/sample_trace'), 'text/plain') + expand_fixture_path('trace/sample_trace'), 'text/plain') end end end diff --git a/spec/workers/create_trace_artifact_worker_spec.rb b/spec/workers/create_trace_artifact_worker_spec.rb index 303eb29ebda..854abd9cca7 100644 --- a/spec/workers/create_trace_artifact_worker_spec.rb +++ b/spec/workers/create_trace_artifact_worker_spec.rb @@ -9,7 +9,7 @@ describe CreateTraceArtifactWorker do it 'executes service' do expect_any_instance_of(Ci::CreateTraceArtifactService) - .to receive(:execute) + .to receive(:execute).with(job) subject end -- cgit v1.2.1