Fix hook spec

pull/6827/head
Michael Frister 11 years ago
parent c0c80e27ac
commit 8d8f977ce8
  1. 4
      spec/lib/hook_spec.rb

@ -29,11 +29,11 @@ describe OpenProject::Webhooks::Hook do
let(:hook) { OpenProject::Webhooks::Hook.new('myhook', &probe) } let(:hook) { OpenProject::Webhooks::Hook.new('myhook', &probe) }
before do before do
probe.should_receive(:call).with(hook, 1, 2, 3, 4) probe.should_receive(:call).with(hook, 1, 2, 3)
end end
it 'should execute the callback with the correct parameters' do it 'should execute the callback with the correct parameters' do
hook.handle(1, 2, 3, 4) hook.handle(1, 2, 3)
end end
end end
end end

Loading…
Cancel
Save