def matches?(rendered)
      @rendered = rendered
      @failures = matchers.reject do |matcher|
        matcher.matches?(rendered)
      end

      @failures.empty?
    end
def matches?(rendered)
      @rendered = rendered
      @failures = matchers.reject do |matcher|
        matcher.matches?(rendered)
      end

      @failures.empty?
    end
Initializes a matcher that matches multiple input elements.

 @param [Hash] components  A hash of matchers. The keys should be the keys used in Rails'
                           multi-parameter assignment, e.g., <tt>"1i"</tt>, <tt>"2s"</tt>, etc,
                           and the values are the matchers that must be satisfied.
 Tests whether the matcher matches the +rendered+ string. It delegates matching to its
 matchers. It returns true if all of its matchers return true. It returns false if *any* of its
 matchers return false.

 @param [String] rendered  A string of HTML or an Object whose +to_s+ method returns HTML.
                           (That includes Nokogiri classes.)

 @return [Boolean]