summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/factories/ci/job_artifacts.rb2
-rw-r--r--spec/workers/create_trace_artifact_worker_spec.rb2
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