spec/punchblock/translator/asterisk/component/asterisk/agi_command_spec.rb in punchblock-0.6.2 vs spec/punchblock/translator/asterisk/component/asterisk/agi_command_spec.rb in punchblock-0.7.0
- old
+ new
@@ -91,10 +91,10 @@
it 'should send a complete event' do
subject.handle_ami_event ami_event
command.should be_complete
- complete_event = command.complete_event.resource(0.5)
+ complete_event = command.complete_event 0.5
complete_event.component_id.should == subject.id
complete_event.reason.should == expected_complete_reason
end
end