diff --git a/spec/lib/hook_spec.rb b/spec/lib/hook_spec.rb index 13bdfe8717..639cfc38e1 100644 --- a/spec/lib/hook_spec.rb +++ b/spec/lib/hook_spec.rb @@ -29,11 +29,11 @@ describe OpenProject::Webhooks::Hook do let(:hook) { OpenProject::Webhooks::Hook.new('myhook', &probe) } before do - probe.should_receive(:call).with(hook, 1, 2, 3, 4) + probe.should_receive(:call).with(hook, 1, 2, 3) end it 'should execute the callback with the correct parameters' do - hook.handle(1, 2, 3, 4) + hook.handle(1, 2, 3) end end end