class Shoulda::Matchers::ActiveRecord::AssociationMatchers::ModelReflection

def association_relation

def association_relation
  relation = associated_class.all
  if reflection.scope
    # Source: AR::Associations::AssociationScope#eval_scope
    relation.instance_exec(subject, &reflection.scope)
  else
    relation
  end
end