spec/adhearsion/calls_spec.rb in adhearsion-2.0.0.rc2 vs spec/adhearsion/calls_spec.rb in adhearsion-2.0.0.rc3
- old
+ new
@@ -111,10 +111,10 @@
end
it "is sends a hangup command for the call" do
call_id = call.id
flexmock PunchblockPlugin, :client => flexmock('Client')
- flexmock(PunchblockPlugin.client).should_receive(:execute_command).once.with(Punchblock::Command::Hangup, :async => true, :call_id => call_id)
+ flexmock(PunchblockPlugin.client).should_receive(:execute_command).once.with(Punchblock::Command::Hangup.new, :async => true, :call_id => call_id)
subject << call
crash
end