Fix spec for Projects::TransferService

parent 495aeac0
...@@ -37,7 +37,7 @@ describe Projects::TransferService, services: true do ...@@ -37,7 +37,7 @@ describe Projects::TransferService, services: true do
end end
it 'executes system hooks' do it 'executes system hooks' do
expect_any_instance_of(Projects::TransferService).to receive(:execute_system_hooks) expect_any_instance_of(SystemHooksService).to receive(:execute_hooks_for).with(project, :transfer)
transfer_project(project, user, group) transfer_project(project, user, group)
end end
...@@ -80,7 +80,7 @@ describe Projects::TransferService, services: true do ...@@ -80,7 +80,7 @@ describe Projects::TransferService, services: true do
end end
it "doesn't run system hooks" do it "doesn't run system hooks" do
expect_any_instance_of(Projects::TransferService).not_to receive(:execute_system_hooks) expect_any_instance_of(SystemHooksService).not_to receive(:execute_hooks_for).with(project, :transfer)
attempt_project_transfer attempt_project_transfer
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment