diff options
Diffstat (limited to 'spec/services/post_receive_service_spec.rb')
-rw-r--r-- | spec/services/post_receive_service_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/services/post_receive_service_spec.rb b/spec/services/post_receive_service_spec.rb index 871ed95bf28..3f4d37e5ddc 100644 --- a/spec/services/post_receive_service_spec.rb +++ b/spec/services/post_receive_service_spec.rb @@ -131,6 +131,12 @@ RSpec.describe PostReceiveService do project.add_developer(user) end + it 'invalidates the branch name cache' do + expect(service.repository).to receive(:expire_branches_cache).and_call_original + + subject + end + it 'invokes MergeRequests::PushOptionsHandlerService' do expect(MergeRequests::PushOptionsHandlerService).to receive(:new).and_call_original |