spec/punchblock/translator/asterisk_spec.rb in punchblock-0.11.0 vs spec/punchblock/translator/asterisk_spec.rb in punchblock-0.12.0

- old
+ new

@@ -48,11 +48,11 @@ let(:call_id) { 'abc123' } it 'executes the call command' do subject.wrapped_object.expects(:execute_call_command).with do |c| c.should be command - c.call_id.should be == call_id + c.target_call_id.should be == call_id end subject.execute_command command, :call_id => call_id end end @@ -109,10 +109,10 @@ end describe '#execute_call_command' do let(:call_id) { 'abc123' } let(:call) { Translator::Asterisk::Call.new 'SIP/foo', subject } - let(:command) { Command::Answer.new.tap { |c| c.call_id = call_id } } + let(:command) { Command::Answer.new.tap { |c| c.target_call_id = call_id } } before do command.request! call.stubs(:id).returns call_id end