|
|
@ -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 |
|
|
|