module ThoughtBot::Shoulda::Controller::XML::ClassMethods

def should_respond_with_xml_for(name = nil)

and that the XML contains ++ as the root element.
Macro that creates a test asserting that the controller responded with an XML content-type
def should_respond_with_xml_for(name = nil)
  should "have ContentType set to 'application/xml'" do
    assert_xml_response
  end
  
  if name
    should "return <#{name}/> as the root element" do
      body = @response.body.first(100).map {|l| "  #{l}"}
      assert_select name.to_s.dasherize, 1, "Body:\n#{body}...\nDoes not have <#{name}/> as the root element."
    end
  end
end