summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-02-02 23:31:06 +0900
committerShinya Maeda <shinya@gitlab.com>2018-02-06 15:50:08 +0900
commit23ca10b914987caba154f8f0f8b89ed880d1f808 (patch)
tree477dcd03d331da5de054d5b89374753c48824961
parent11a37c40daa30a0cc1272c25dc23cb953db54dff (diff)
downloadgitlab-ce-23ca10b914987caba154f8f0f8b89ed880d1f808.tar.gz
Alessio catches: Test fix
-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