mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
421a49d0b6
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> |
||
---|---|---|
.. | ||
shoulda | ||
shoulda-matchers.rb |