spec/punchblock/translator/asterisk/component/output_spec.rb in punchblock-0.12.0 vs spec/punchblock/translator/asterisk/component/output_spec.rb in punchblock-1.0.0
- old
+ new
@@ -412,9 +412,21 @@
subject.execute
original_command.complete_event(0.1).reason.should be_a Punchblock::Component::Output::Complete::Success
end
end
+ context 'with a string (not SSML)' do
+ let :command_options do
+ { :text => 'Foo Bar' }
+ end
+
+ it "should return an unrenderable document error" do
+ subject.execute
+ error = ProtocolError.new.setup 'unrenderable document error', 'The provided document could not be rendered.'
+ original_command.response(0.1).should be == error
+ end
+ end
+
context 'with multiple audio SSML nodes' do
let(:audio_filename1) { 'http://foo.com/bar.mp3' }
let(:audio_filename2) { 'http://foo.com/baz.mp3' }
let :command_options do
{