Commit 265df23c authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'ee-build-finished-worker-spec-prepend' into 'master'

EE: Remove use of any_instance_of in runner spec

See merge request gitlab-org/gitlab-ee!4763
parents cdba9047 78c9f81c
......@@ -702,7 +702,7 @@ describe API::Runner do
context 'when tace is given' do
it 'creates a trace artifact' do
allow_any_instance_of(BuildFinishedWorker).to receive(:perform).with(job.id) do
allow(BuildFinishedWorker).to receive(:perform_async).with(job.id) do
CreateTraceArtifactWorker.new.perform(job.id)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment