spec/punchblock/translator/asterisk/component/asterisk/agi_command_spec.rb in punchblock-2.1.1 vs spec/punchblock/translator/asterisk/component/asterisk/agi_command_spec.rb in punchblock-2.2.0

- old
+ new

@@ -79,29 +79,26 @@ before { ami_client.should_receive(:send_action).once.and_raise response } it 'should send the component node false' do subject.execute original_command.response(1).should be_false - subject.should_not be_alive end context "which is 'No such channel'" do let(:message) { 'No such channel' } it "should return an :item_not_found error for the command" do subject.execute original_command.response(0.5).should be == ProtocolError.new.setup(:item_not_found, "Could not find a call with ID #{mock_call.id}", mock_call.id) - subject.should_not be_alive end end context "which is 'Channel SIP/nosuchchannel does not exist.'" do let(:message) { 'Channel SIP/nosuchchannel does not exist.' } it "should return an :item_not_found error for the command" do subject.execute original_command.response(0.5).should be == ProtocolError.new.setup(:item_not_found, "Could not find a call with ID #{mock_call.id}", mock_call.id) - subject.should_not be_alive end end end end