spec/punchblock/component/input_spec.rb in punchblock-0.11.0 vs spec/punchblock/component/input_spec.rb in punchblock-0.12.0

- old
+ new

@@ -138,30 +138,30 @@ let(:mock_client) { mock 'Client' } let(:command) { Input.new :grammar => '[5 DIGITS]' } before do command.component_id = 'abc123' - command.call_id = '123abc' + command.target_call_id = '123abc' command.client = mock_client end describe '#stop_action' do subject { command.stop_action } its(:to_xml) { should be == '<stop xmlns="urn:xmpp:rayo:1"/>' } its(:component_id) { should be == 'abc123' } - its(:call_id) { should be == '123abc' } + its(:target_call_id) { should be == '123abc' } end describe '#stop!' do describe "when the command is executing" do before do command.request! command.execute! end it "should send its command properly" do - mock_client.expects(:execute_command).with(command.stop_action, :call_id => '123abc', :component_id => 'abc123') + mock_client.expects(:execute_command).with(command.stop_action, :target_call_id => '123abc', :component_id => 'abc123') command.stop! end end describe "when the command is not executing" do