spec/punchblock/translator/asterisk/call_spec.rb in punchblock-1.4.1 vs spec/punchblock/translator/asterisk/call_spec.rb in punchblock-1.5.0
- old
+ new
@@ -825,9 +825,10 @@
it "should send a Hangup AMI command and set the command's response" do
subject.execute_command command
ami_action = subject.wrapped_object.instance_variable_get(:'@current_ami_action')
ami_action.name.should be == "hangup"
+ ami_action.headers['Cause'].should be == 16
ami_action << RubyAMI::Response.new
command.response(0.5).should be true
end
end