spec/public/to_xml_spec.rb in dm-serializer-0.9.10 vs spec/public/to_xml_spec.rb in dm-serializer-0.9.11

- old
+ new

@@ -60,10 +60,10 @@ it_should_behave_like "A serialization method" it "should not include the XML prologue, so that the result can be embedded in other XML documents" do planet = Planet.new xml = planet.to_xml(:element_name => "aplanet") - xml.starts_with?("<?xml").should == false + xml.should_not =~ /\A<\?xml/ end describe ':element_name option for Resource' do it 'should be used as the root node name by #to_xml' do planet = Planet.new