spec/punchblock/translator/freeswitch/call_spec.rb in punchblock-2.0.1 vs spec/punchblock/translator/freeswitch/call_spec.rb in punchblock-2.0.2

- old
+ new

@@ -356,11 +356,11 @@ comp_command = Punchblock::Component::Output.new :render_document => {:value => ssml_doc} comp_command.request! component = subject.execute_command comp_command comp_command.response(0.1).should be_a Ref - expected_complete_event = Punchblock::Event::Complete.new :target_call_id => subject.id, :component_id => component.id + expected_complete_event = Punchblock::Event::Complete.new :target_call_id => subject.id, :component_id => component.id, source_uri: component.id expected_complete_event.reason = Punchblock::Event::Complete::Hangup.new expected_end_event = Punchblock::Event::End.new :reason => :hangup, :target_call_id => subject.id translator.should_receive(:handle_pb_event).with(expected_complete_event).once.ordered translator.should_receive(:handle_pb_event).with(expected_end_event).once.ordered @@ -884,9 +884,10 @@ let(:subsequent_command) { Punchblock::Component::Stop.new :component_id => comp_id } let :expected_event do Punchblock::Event::Complete.new target_call_id: subject.id, component_id: comp_id, + source_uri: comp_id, reason: Punchblock::Event::Complete::Error.new end before do component_command.request!