提交 71545ca6 编写于 作者: R Rémy Coutable

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

Remove use of any_instance_of in runner spec

See merge request gitlab-org/gitlab-ce!17427
...@@ -700,7 +700,7 @@ describe API::Runner do ...@@ -700,7 +700,7 @@ describe API::Runner do
context 'when tace is given' do context 'when tace is given' do
it 'creates a trace artifact' 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) CreateTraceArtifactWorker.new.perform(job.id)
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册