Active tense test coverage in pages spec
Ports change from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/642
This commit is contained in:
parent
5075fb3bb7
commit
94545e58f3
|
@ -15,7 +15,7 @@ describe PagesService, services: true do
|
||||||
context 'on success' do
|
context 'on success' do
|
||||||
before { build.success }
|
before { build.success }
|
||||||
|
|
||||||
it 'should execute worker' do
|
it 'executes worker' do
|
||||||
expect(PagesWorker).to receive(:perform_async)
|
expect(PagesWorker).to receive(:perform_async)
|
||||||
service.execute
|
service.execute
|
||||||
end
|
end
|
||||||
|
@ -25,7 +25,7 @@ describe PagesService, services: true do
|
||||||
context "on #{status}" do
|
context "on #{status}" do
|
||||||
before { build.status = status }
|
before { build.status = status }
|
||||||
|
|
||||||
it 'should not execute worker' do
|
it 'does not execute worker' do
|
||||||
expect(PagesWorker).not_to receive(:perform_async)
|
expect(PagesWorker).not_to receive(:perform_async)
|
||||||
service.execute
|
service.execute
|
||||||
end
|
end
|
||||||
|
@ -39,7 +39,7 @@ describe PagesService, services: true do
|
||||||
build.success
|
build.success
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should not execute worker' do
|
it 'does not execute worker' do
|
||||||
expect(PagesWorker).not_to receive(:perform_async)
|
expect(PagesWorker).not_to receive(:perform_async)
|
||||||
service.execute
|
service.execute
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue