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
|
||||
before { build.success }
|
||||
|
||||
it 'should execute worker' do
|
||||
it 'executes worker' do
|
||||
expect(PagesWorker).to receive(:perform_async)
|
||||
service.execute
|
||||
end
|
||||
|
@ -25,7 +25,7 @@ describe PagesService, services: true do
|
|||
context "on #{status}" do
|
||||
before { build.status = status }
|
||||
|
||||
it 'should not execute worker' do
|
||||
it 'does not execute worker' do
|
||||
expect(PagesWorker).not_to receive(:perform_async)
|
||||
service.execute
|
||||
end
|
||||
|
@ -39,7 +39,7 @@ describe PagesService, services: true do
|
|||
build.success
|
||||
end
|
||||
|
||||
it 'should not execute worker' do
|
||||
it 'does not execute worker' do
|
||||
expect(PagesWorker).not_to receive(:perform_async)
|
||||
service.execute
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue