module Spec::Rails::Matchers::AssertSelect::TestResponseOrString

def string?

def string?
  String === self
end

def test_response?

def test_response?
  ActionController::TestResponse === self and
                                     !self.headers['Content-Type'].blank? and
                                     self.headers['Content-Type'].to_sym == :xml
end