spec/adhearsion/calls_spec.rb in adhearsion-2.0.0.rc3 vs spec/adhearsion/calls_spec.rb in adhearsion-2.0.0.rc4
- old
+ new
@@ -10,10 +10,10 @@
let :calls do
Array.new(number_of_calls) { Adhearsion::Call.new new_offer }
end
def new_offer(call_id = nil, headers = {})
- Punchblock::Event::Offer.new :call_id => call_id || random_call_id, :headers => headers
+ Punchblock::Event::Offer.new :target_call_id => call_id || random_call_id, :headers => headers
end
it 'can create a call and add it to the collection' do
subject.any?.should be == false
call = subject.from_offer new_offer