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
bougyman-freeswitcher-0.1.0 spec/fsr/app/hangup.rb
bougyman-freeswitcher-0.1.1 spec/fsr/app/hangup.rb
bougyman-freeswitcher-0.1.2 spec/fsr/app/hangup.rb
bougyman-freeswitcher-0.1.3 spec/fsr/app/hangup.rb
bougyman-freeswitcher-0.1.4 spec/fsr/app/hangup.rb
bougyman-freeswitcher-0.3.0 spec/fsr/app/hangup.rb
bougyman-freeswitcher-0.3.1 spec/fsr/app/hangup.rb
bougyman-freeswitcher-0.4.0 spec/fsr/app/hangup.rb
bougyman-freeswitcher-0.4.1 spec/fsr/app/hangup.rb
bougyman-freeswitcher-0.4.2 spec/fsr/app/hangup.rb
freeswitcher-0.8.0 spec/fsr/app/hangup.rb
freeswitcher-0.7.1 spec/fsr/app/hangup.rb
freeswitcher-0.7.0 spec/fsr/app/hangup.rb
freeswitcher-0.6.18 spec/fsr/app/hangup.rb
freeswitcher-0.6.17 spec/fsr/app/hangup.rb
freeswitcher-0.6.16 spec/fsr/app/hangup.rb
freeswitcher-0.6.15 spec/fsr/app/hangup.rb
freeswitcher-0.6.14 spec/fsr/app/hangup.rb
freeswitcher-0.6.13 spec/fsr/app/hangup.rb
freeswitcher-0.6.12 spec/fsr/app/hangup.rb