Skip to content

Commit

Permalink
Add failing test case demonstrating #21
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Feb 24, 2014
1 parent 3cc6f79 commit 87cfac8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions spec/ruby_speech/ssml/speak_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.