spec/punchblock/component/input_spec.rb in punchblock-0.6.2 vs spec/punchblock/component/input_spec.rb in punchblock-0.7.0
- old
+ new
@@ -11,10 +11,11 @@
subject do
Input.new :grammar => {:value => '[5 DIGITS]', :content_type => 'application/grammar+custom'},
:mode => :speech,
:terminator => '#',
:max_digits => 10,
+ :max_silence => 1000,
:recognizer => 'en-US',
:initial_timeout => 2000,
:inter_digit_timeout => 2000,
:term_timeout => 2000,
:complete_timeout => 2000,
@@ -25,10 +26,11 @@
its(:grammar) { should == Input::Grammar.new(:value => '[5 DIGITS]', :content_type => 'application/grammar+custom') }
its(:mode) { should == :speech }
its(:terminator) { should == '#' }
its(:max_digits) { should == 10 }
+ its(:max_silence) { should == 1000 }
its(:recognizer) { should == 'en-US' }
its(:initial_timeout) { should == 2000 }
its(:inter_digit_timeout) { should == 2000 }
its(:term_timeout) { should == 2000 }
its(:complete_timeout) { should == 2000 }
@@ -42,10 +44,11 @@
<<-MESSAGE
<input xmlns="urn:xmpp:rayo:input:1"
mode="speech"
terminator="#"
max-digits="10"
+ max-silence="1000"
recognizer="en-US"
initial-timeout="2000"
inter-digit-timeout="2000"
term-timeout="2000"
complete-timeout="2000"
@@ -65,9 +68,10 @@
its(:grammar) { should == Input::Grammar.new(:value => '[5 DIGITS]', :content_type => 'application/grammar+custom') }
its(:mode) { should == :speech }
its(:terminator) { should == '#' }
its(:max_digits) { should == 10 }
+ its(:max_silence) { should == 1000 }
its(:recognizer) { should == 'en-US' }
its(:initial_timeout) { should == 2000 }
its(:inter_digit_timeout) { should == 2000 }
its(:term_timeout) { should == 2000 }
its(:complete_timeout) { should == 2000 }