diff options
Diffstat (limited to 'spec/workers/post_receive_spec.rb')
-rw-r--r-- | spec/workers/post_receive_spec.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/workers/post_receive_spec.rb b/spec/workers/post_receive_spec.rb index 4d3cc447d9b..04a38874905 100644 --- a/spec/workers/post_receive_spec.rb +++ b/spec/workers/post_receive_spec.rb @@ -4,7 +4,6 @@ require 'spec_helper' RSpec.describe PostReceive do include AfterNextHelpers - include ServicesHelper let(:changes) { "123456 789012 refs/heads/tést\n654321 210987 refs/tags/tag" } let(:wrongly_encoded_changes) { changes.encode("ISO-8859-1").force_encoding("UTF-8") } @@ -234,7 +233,7 @@ RSpec.describe PostReceive do end it 'calls Git::ProcessRefChangesService' do - expect_execution_of(Git::ProcessRefChangesService) + expect(Git::ProcessRefChangesService).to get_executed perform end @@ -269,7 +268,7 @@ RSpec.describe PostReceive do allow(Gitlab::DataBuilder::Repository).to receive(:update).and_return(fake_hook_data) # silence hooks so we can isolate allow_next(Key).to receive(:post_create_hook).and_return(true) - expect_execution_of(Git::ProcessRefChangesService) + expect(Git::ProcessRefChangesService).to get_executed end it 'calls SystemHooksService' do @@ -379,7 +378,7 @@ RSpec.describe PostReceive do allow(Project).to receive(:find_by).and_return(project) expect(project).to receive(:execute_hooks).twice - expect(project).to receive(:execute_services).twice + expect(project).to receive(:execute_integrations).twice perform end |