Sha256: ac339508a6122dfa588a7c1305e424ae7d8fe4fad1bf9fd384931e6c90d1ec77

Contents?: true

Size: 664 Bytes

Versions: 1

Compression:

Stored size: 664 Bytes

Contents

context "The PBX object" do
  specify "should properize properly" do
    PBX.properize("123").should == 'SIP/123'
    PBX.properize(1_555_444_1234).should == 'SIP/15554441234'
    PBX.properize(:jay).should == 'SIP/jay'
    PBX.properize("jay").should == 'SIP/jay'
    PBX.properize("SIP/123").should == 'SIP/123'
    PBX.properize("IAX2/jay").should == 'IAX2/jay'
    PBX.properize((100..110).to_a).should == 'SIP/100&SIP/101&SIP/102&SIP/103&SIP/104&SIP/105&SIP/106&SIP/107&SIP/108&SIP/109&SIP/110'
    PBX.properize(["SIP/123", "SIP/456"]).should == 'SIP/123&SIP/456'
    # TODO: Should mock up dialing a user
    # TODO: Should mock up dialing a group
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adhearsion-0.7.7 test/asterisk_module_test.rb