• S
    `WhereClause#predicates` does not need to be public · d26dd008
    Sean Griffin 提交于
    The only place it was accessed was in tests. Many of them have another
    way that they can test their behavior, that doesn't involve reaching
    into internals as far as they did. `AssociationScopeTest` is testing a
    situation where the where clause would have one bind param per
    predicate, so it can just ignore the predicates entirely. The where
    chain test was primarly duplicating the logic tested on `WhereClause`
    directly, so I instead just make sure it calls the appropriate method
    which is fully tested in isolation.
    d26dd008
named_scoping_test.rb 16.0 KB