class RSpec::Matchers::BuiltIn::Have
def cardinality_expression(query_method)
def cardinality_expression(query_method) expression = "#{target_expression}." expression << "#{@collection_name}." if @target_owns_a_collection expression << String(query_method) end