spec/lib/roadie/inliner_spec.rb in roadie-2.3.3 vs spec/lib/roadie/inliner_spec.rb in roadie-2.3.4
- old
+ new
@@ -444,10 +444,10 @@
rendering('<html><body></body></html>').to_xml.should include('<!DOCTYPE ')
rendering('<!DOCTYPE html><html><body></body></html>').to_xml.should_not match(/(DOCTYPE.*?){2}/)
end
it "sets xmlns of <html> to that of XHTML" do
- rendering('<html><body></body></html>').should have_selector('html[xmlns="http://www.w3.org/1999/xhtml"]')
+ rendering('<html><body></body></html>').should have_node('html').with_attributes("xmlns" => "http://www.w3.org/1999/xhtml")
end
it "inserts basic html structure if not present" do
rendering('<h1>Hey!</h1>').should have_selector('html > head + body > h1')
end