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:
Valery Sizov 2016-08-11 18:30:18 +03:00 committed by James Edwards-Jones
parent 5075fb3bb7
commit 94545e58f3
1 changed files with 3 additions and 3 deletions

View File

@ -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