Sha256: 00d18a8f13704c3d6d20cb4b4a0cd858969e6f2070ba088f0e4ee5308c08fed9
Contents?: true
Size: 1.32 KB
Versions: 3
Compression:
Stored size: 1.32 KB
Contents
require 'spec_helper' module RubySpeech module SSML describe Mark do its(:element_name) { should == 'mark' } describe "setting options in initializers" do subject { Mark.new :name => 'foo' } its(:name) { should == 'foo' } end it 'registers itself' do Element.class_from_registration(:mark).should == Mark end describe "from a document" do let(:document) { '<mark name="foo"/>' } subject { Element.import document } it { should be_instance_of Mark } its(:name) { should == 'foo' } end describe "#name" do before { subject.name = 'foo' } its(:name) { should == 'foo' } end describe "<<" do it "should always raise InvalidChildError" do lambda { subject << 'anything' }.should raise_error(InvalidChildError, "A Mark cannot contain children") end end describe "comparing objects" do it "should be equal if the name is the same" do Mark.new(:name => "foo").should == Mark.new(:name => "foo") end describe "when the name is different" do it "should not be equal" do Mark.new(:name => "foo").should_not == Mark.new(:name => "bar") end end end end # Mark end # SSML end # RubySpeech
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby_speech-1.0.0 | spec/ruby_speech/ssml/mark_spec.rb |
ruby_speech-0.5.1 | spec/ruby_speech/ssml/mark_spec.rb |
ruby_speech-0.5.0 | spec/ruby_speech/ssml/mark_spec.rb |