class Shoulda::ActionController::Matchers::RenderWithLayout

def result

def result
  if rendered_with_layout?
    "rendered with the #{layout.inspect} layout"
  else
    "rendered without a layout"
  end
end