Permalink
Browse files

Add failing test case demonstrating #21

  • Loading branch information...
1 parent 3cc6f79 commit 87cfac8c38cf1f603bb64d0db917e50b86756ae6 @benlangfeld benlangfeld committed Feb 24, 2014
Showing with 21 additions and 0 deletions.
  1. +21 −0 spec/ruby_speech/ssml/speak_spec.rb
@@ -182,6 +182,27 @@ module SSML
concat.document.root.should == concat
concat.to_s.should_not include('default')
end
+
+ context "when concatenating" do
+ describe "simple strings" do
+ it "inserts a space between them" do
+ speak1 = SSML.draw do
+ string "Hi, my name"
+ end
+
+ speak2 = SSML.draw do
+ string "is Frank"
+ end
+
+ expected_concat = SSML.draw do
+ string "Hi, my name is Frank"
+ end
+
+ concat = (speak1 + speak2)
+ concat.should == expected_concat
+ end
+ end
+ end
end # Speak
end # SSML
end # RubySpeech

0 comments on commit 87cfac8

Please sign in to comment.