class Shoulda::ActionController::Matchers::RespondWithContentTypeMatcher
def matches?(controller)
def matches?(controller) @controller = controller if @content_type.is_a?(Regexp) response_content_type =~ @content_type else response_content_type == @content_type end end