Skip to content
Snippets Groups Projects
Commit 94545e58 authored by Valery Sizov's avatar Valery Sizov Committed by James Edwards-Jones
Browse files

Active tense test coverage in pages spec

parent 5075fb3b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment