describe "/layouts/application.html.haml"dodefdo_renderrender'/layouts/application.html.haml'end
it "should have xml declaration"do
do_render
response.shouldhave_text(%r{\A<\?xml version='1.0' encoding='utf-8' \?>}m)
end
it "should have xhtml transitional doctype"do
do_render
response.shouldhave_text(%r{DOCTYPE html.*XHTML 1.0 Transitional//EN})
end
it "should have html attributes"do
do_render
response.shouldhave_tag("html[lang='en-US']")
### TODO: change to have_tag at some point. The xml namespace throws 'Invalid operation/value' ### Any suggestions?
response.shouldhave_text(%r{^<html.*xml:lang='en-US'})
endend