Commit 94545e58 authored by Valery Sizov's avatar Valery Sizov Committed by James Edwards-Jones

Active tense test coverage in pages spec

Ports change from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/642
parent 5075fb3b
......@@ -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
......
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