spec/punchblock/component/input_spec.rb in punchblock-1.5.1 vs spec/punchblock/component/input_spec.rb in punchblock-1.5.2
- old
+ new
@@ -78,11 +78,11 @@
end
describe Input::Grammar do
describe "when not passing a content type" do
subject { Input::Grammar.new :value => grxml_doc }
- its(:content_type) { should be == 'application/grammar+grxml' }
+ its(:content_type) { should be == 'application/srgs+xml' }
end
describe 'with a simple grammar' do
subject { Input::Grammar.new :value => '[5 DIGITS]', :content_type => 'application/grammar+custom' }
@@ -92,12 +92,12 @@
subject.child.to_xml.should be == expected_message.strip
end
end
describe 'with a GRXML grammar' do
- subject { Input::Grammar.new :value => grxml_doc, :content_type => 'application/grammar+grxml' }
+ subject { Input::Grammar.new :value => grxml_doc, :content_type => 'application/srgs+xml' }
- its(:content_type) { should be == 'application/grammar+grxml' }
+ its(:content_type) { should be == 'application/srgs+xml' }
let(:expected_message) { "<![CDATA[ #{grxml_doc} ]]>" }
it "should wrap GRXML in CDATA" do
subject.child.to_xml.should be == expected_message.strip