spec/adhearsion/asterisk/plugin_spec.rb in adhearsion-asterisk-0.1.1 vs spec/adhearsion/asterisk/plugin_spec.rb in adhearsion-asterisk-0.1.2

- old
+ new

@@ -20,10 +20,10 @@ c.reason = Punchblock::Component::Asterisk::AGI::Command::Complete::Success.new :code => 200, :result => 1, :data => 'foobar' end end it 'should execute an AGI command with the specified name and parameters and return the response code, response and data' do - Punchblock::Component::Asterisk::AGI::Command.any_instance.stubs :complete_event => mock('Complete', :resource => complete_event) + Punchblock::Component::Asterisk::AGI::Command.any_instance.stubs :complete_event => complete_event subject.expects(:execute_component_and_await_completion).once.with expected_agi_command values = subject.agi 'Dial', '4044754842', 15 values.should == [200, 1, 'foobar'] end