Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass correct object type to association reflection #992

Merged
merged 1 commit into from Jul 11, 2020
Merged

pass correct object type to association reflection #992

merged 1 commit into from Jul 11, 2020

Commits on Jul 11, 2020

  1. Pass correct object type to association reflection

    It's currently not possible to test a `has_many` association that is
    defined with a scope block where the block takes an instance of the
    association source. The `have_many` matcher attempts to call this scope
    and when it does so it does not pass that instance. This commit fixes
    that.
    
    Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
    formigarafa and mcmire committed Jul 11, 2020
    Copy the full SHA
    378493d View commit details
    Browse the repository at this point in the history