Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

Unexpected behavior when count is used with - #9

Description

@solnic

suppose a and b are collections return by finders on a class A:

suppose (a - b).count == 5

suppose we have a chained finder which returns only a subset of items of A:

(a - b).my_filter.count should be <= (a - b).count, but it is actually larger.

See the test case here:

https://gist.github.com/3569c20a3bf30f269699


Created by Matt - 2010-11-13 02:18:34 UTC

Original Lighthouse ticket: http://datamapper.lighthouseapp.com/projects/20609/tickets/1446

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions