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.6.11 spec/fsr/app/hangup.rb
freeswitcher-0.6.10 spec/fsr/app/hangup.rb
freeswitcher-0.6.9 spec/fsr/app/hangup.rb
freeswitcher-0.6.8 spec/fsr/app/hangup.rb
freeswitcher-0.6.7 spec/fsr/app/hangup.rb
freeswitcher-0.6.6 spec/fsr/app/hangup.rb
freeswitcher-0.6.5 spec/fsr/app/hangup.rb
freeswitcher-0.6.4 spec/fsr/app/hangup.rb
freeswitcher-0.6.3 spec/fsr/app/hangup.rb
freeswitcher-0.6.2 spec/fsr/app/hangup.rb
freeswitcher-0.6.1 spec/fsr/app/hangup.rb
freeswitcher-0.6.0 spec/fsr/app/hangup.rb
freeswitcher-0.5.11 spec/fsr/app/hangup.rb
freeswitcher-0.5.10 spec/fsr/app/hangup.rb
freeswitcher-0.5.9 spec/fsr/app/hangup.rb
freeswitcher-0.5.8 spec/fsr/app/hangup.rb
freeswitcher-0.5.7 spec/fsr/app/hangup.rb
freeswitcher-0.5.6 spec/fsr/app/hangup.rb
freeswitcher-0.5.5 spec/fsr/app/hangup.rb
freeswitcher-0.5.4 spec/fsr/app/hangup.rb