class Spec::Rails::Matchers::AssertSelect
def doc_from(response_or_text)
def doc_from(response_or_text) response_or_text.extend TestResponseOrString if response_or_text.test_response? HTML::Document.new(response_or_text.body, @options[:strict], @options[:xml]).root elsif response_or_text.string? HTML::Document.new(response_or_text, @options[:strict], @options[:xml]).root end end