spec/unit/to_xml_spec.rb in dm-serializer-0.9.6 vs spec/unit/to_xml_spec.rb in dm-serializer-0.9.7

- old
+ new

@@ -37,11 +37,11 @@ EOS end it "should serialize a collection to XML" do @collection.to_xml.should == <<-EOS.compress_lines(false) - <cows type='array'> + <#{Extlib::Inflection.tableize("Cow")} type='array'> <cow> <id type='integer'>1</id> <composite type='integer'>2</composite> <name>Betsy</name> <breed>Jersey</breed> @@ -50,10 +50,10 @@ <id type='integer'>10</id> <composite type='integer'>20</composite> <name>Berta</name> <breed>Guernsey</breed> </cow> - </cows> + </#{Extlib::Inflection.tableize("Cow")}> EOS end describe "multiple repositories" do before(:all) do