spec/entry_spec.rb in atom-tools-2.0.4 vs spec/entry_spec.rb in atom-tools-2.0.5

- old
+ new

@@ -338,16 +338,27 @@ @entry.draft! read_entry_xml('app:control/app:draft').namespace.should == Atom::PP_NS end end - describe 'extensions' do before(:each) do @entry = Atom::Entry.parse(fixtures('entry-w-ext')) end it 'should preserve namespaces' do @entry.to_s.should =~ /purl/ + end + end + + describe "with XML in the content element" do + it "should expose the content XML" do + @entry = Atom::Entry.parse(fixtures('entry-w-xml')) + @entry.content.xml.should be_instance_of(REXML::Element) + end + + it "should expose the content XML" do + @entry = Atom::Entry.parse(fixtures('entry-w-xml')) + @entry.content.xml.root.name.should_not == 'content' end end end