# File lib/mspec/matchers/equal_element.rb, line 49 49: def attributes_for_failure_message 50: if @attributes 51: if @attributes.empty? 52: "no attributes" 53: else 54: @attributes.inject([]) { |memo, n| memo << %Q{#{n[0]}="#{n[1]}"} }.join(" ") 55: end 56: else 57: "any attributes" 58: end 59: end