Sha256: 40552fd20a7ba6b126d6d5ecf1a3a65e58341f064aad5e2e8ee042246aea2776

Contents?: true

Size: 511 Bytes

Versions: 61

Compression:

Stored size: 511 Bytes

Contents

require 'spec/helper'
require "fsr/app"
FSR::App.load_application("hangup")

describe "Testing FSR::App::Hangup" do
  it "Hangs up the channel" do
    hangup = FSR::App::Hangup.new
    hangup.sendmsg.should == "call-command: execute\nexecute-app-name: hangup\nexecute-app-arg: \n\n"
  end

  it "Hangs up the channel using a hangup cause" do
    hangup = FSR::App::Hangup.new("USER_BUSY")
    hangup.sendmsg.should == "call-command: execute\nexecute-app-name: hangup\nexecute-app-arg: USER_BUSY\n\n"
  end

end

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
freeswitcher-0.4.0 spec/fsr/app/hangup.rb