spec/adhearsion/call_controller/output_spec.rb in adhearsion-2.0.0.alpha3 vs spec/adhearsion/call_controller/output_spec.rb in adhearsion-2.0.0.beta1

- old
+ new

@@ -287,9 +287,19 @@ subject.should_receive(:play_ssml).once.with(string, {}) subject.should_receive(:output).once.with(:text, string, {}).and_return true subject.speak(string).should be true end end + + describe "converts the argument to a string" do + it 'calls output with a string' do + expected_string = "123" + argument = 123 + subject.should_receive(:play_ssml).once.with(argument, {}) + subject.should_receive(:output).once.with(:text, expected_string, {}).and_return true + subject.speak(argument) + end + end end describe "#ssml_for" do let(:prompt) { "Please stand by" }