diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-13 13:46:47 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2019-06-13 13:46:47 +0300 |
commit | 352b43e0af67377b8e75b4a082418e32b13ee5f6 (patch) | |
tree | 424cb0499d657602dd77aef0bdaad63d77ca41dc /spec/services | |
parent | 4eb63d82d923bf884a1758536b2b8930bb9896b0 (diff) |
Modify the branch hooks spec to expect processing of commit messages
Commit messages are not processed for references to issues when
creating the default branch on push. This was expected
behavior (probably to avoid performance problems when first pushing a
repository with thousands of commits). However, this is not an issue
because we always limit the number of commits to process to 100
regardless of whether we are creating the default branch or not.
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/git/branch_hooks_service_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/git/branch_hooks_service_spec.rb b/spec/services/git/branch_hooks_service_spec.rb index 22faa996015..b5694628269 100644 --- a/spec/services/git/branch_hooks_service_spec.rb +++ b/spec/services/git/branch_hooks_service_spec.rb @@ -287,8 +287,8 @@ describe Git::BranchHooksService do context 'creating the default branch' do let(:oldrev) { Gitlab::Git::BLANK_SHA } - it 'does not process commit messages' do - expect(ProcessCommitWorker).not_to receive(:perform_async) + it 'processes a limited number of commit messages' do + expect(ProcessCommitWorker).to receive(:perform_async).once service.execute end |