summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2016-08-11 18:30:18 +0300
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-02-01 22:56:50 +0000
commit94545e58f3be29f40fd4e20bb58324246a1f6a60 (patch)
treea587d2fd86f91a663a3dc80381fb4f62fec45d34
parent5075fb3bb7d0d91cec697095dc7c7803333a7ffb (diff)
downloadgitlab-ce-94545e58f3be29f40fd4e20bb58324246a1f6a60.tar.gz
Active tense test coverage in pages spec
Ports change from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/642
-rw-r--r--spec/services/pages_service_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/pages_service_spec.rb b/spec/services/pages_service_spec.rb
index b4215b2cd02..aa63fe3a5c1 100644
--- a/spec/services/pages_service_spec.rb
+++ b/spec/services/pages_service_spec.rb
@@ -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