1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00
thoughtbot--shoulda-matchers/lib
Rafael Santos 421a49d0b6
Pass correct object type to association reflection (#992)
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>
2020-07-11 03:01:29 -06:00
..
shoulda Pass correct object type to association reflection (#992) 2020-07-11 03:01:29 -06:00
shoulda-matchers.rb Switched to allowing a more canonical require statement 2011-01-31 16:45:13 -05:00