require 'spec_helper' describe RubySpeech do describe ".parse" do subject do RubySpeech.parse example_document end context "with an SSML document" do let :example_document do '''

You have 4 new messages. The first is from Stephanie Williams and arrived at 3:45pm. The subject is ski trip

''' end it { should be_a RubySpeech::SSML::Element } end context "with a GRXML document" do let :example_document do ''' please move the window open a file open TAG-CONTENT-1 close TAG-CONTENT-2 delete TAG-CONTENT-3 move TAG-CONTENT-4 the a window file menu ''' end it { should be_a RubySpeech::GRXML::Element } end context "with an NLSML document" do let :example_document do ''' I want to go to Pittsburgh Pittsburgh I want to go to Stockholm Stockholm ''' end it { should be_a RubySpeech::NLSML::Document } end end end