spec/adhearsion/calls_spec.rb in adhearsion-2.3.0 vs spec/adhearsion/calls_spec.rb in adhearsion-2.3.1

- old
+ new

@@ -123,11 +123,11 @@ subject[call_id].should be_nil 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.new, :async => true, :call_id => call_id) + PunchblockPlugin.stub :client => mock('Client') + PunchblockPlugin.client.should_receive(:execute_command).once.with(Punchblock::Command::Hangup.new, :async => true, :call_id => call_id) subject << call crash end