Sha256: 01f485001126b9f601fee44894b15a980963da5fbbaf030dacefaacbed1fd66c

Contents?: true

Size: 947 Bytes

Versions: 16

Compression:

Stored size: 947 Bytes

Contents

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

describe "Testing FSR::App::ValetPark" do

  it "puts the call into valet lot" do
    valet = FSR::App::ValetPark.new("mylot", :stall_number => '5555')
    valet.sendmsg.should == "call-command: execute\nexecute-app-name: valet_park\nexecute-app-arg: mylot 5555\n\n"
  end

  it "asks which valet lot to take call from" do
    valet = FSR::App::ValetPark.new("mylot", :action => :ask, :range => 1..11, :timeout => 10000, :prompt => 'enter_ext_pound.wav')
    valet.sendmsg.should == "call-command: execute\nexecute-app-name: valet_park\nexecute-app-arg: mylot ask 1 11 10000 enter_ext_pound.wav\n\n"
  end

  it "autoselect parking stall" do
    valet = FSR::App::ValetPark.new("mylot", :action => :auto, :range => 8501..8599)
    valet.sendmsg.should == "call-command: execute\nexecute-app-name: valet_park\nexecute-app-arg: mylot auto in 8501 8599\n\n"
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
freeswitcher-0.8.0 spec/fsr/app/valet_park.rb
freeswitcher-0.7.1 spec/fsr/app/valet_park.rb
freeswitcher-0.7.0 spec/fsr/app/valet_park.rb
freeswitcher-0.6.18 spec/fsr/app/valet_park.rb
freeswitcher-0.6.17 spec/fsr/app/valet_park.rb
freeswitcher-0.6.16 spec/fsr/app/valet_park.rb
freeswitcher-0.6.15 spec/fsr/app/valet_park.rb
freeswitcher-0.6.14 spec/fsr/app/valet_park.rb
freeswitcher-0.6.13 spec/fsr/app/valet_park.rb
freeswitcher-0.6.12 spec/fsr/app/valet_park.rb
freeswitcher-0.6.11 spec/fsr/app/valet_park.rb
freeswitcher-0.6.10 spec/fsr/app/valet_park.rb
freeswitcher-0.6.9 spec/fsr/app/valet_park.rb
freeswitcher-0.6.8 spec/fsr/app/valet_park.rb
freeswitcher-0.6.7 spec/fsr/app/valet_park.rb
freeswitcher-0.6.6 spec/fsr/app/valet_park.rb