thoughtbot--shoulda-matchers/lib/shoulda/matchers/active_record/association_matchers
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
..
counter_cache_matcher.rb Prefer protected over private attributes 2014-06-27 14:41:54 -06:00
dependent_matcher.rb Dependent qualifier now supports more values 2015-01-20 14:10:14 -07:00
inverse_of_matcher.rb Prefer protected over private attributes 2014-06-27 14:41:54 -06:00
join_table_matcher.rb Fix #tables deprecation in Rails 5.0 and keep compatibility with Rails 4.x 2017-09-17 17:01:50 -05:00
model_reflection.rb Pass correct object type to association reflection (#992) 2020-07-11 03:01:29 -06:00
model_reflector.rb Pass correct object type to association reflection (#992) 2020-07-11 03:01:29 -06:00
option_verifier.rb Rails 5: Fix failing association matcher tests 2017-09-17 17:01:50 -05:00
optional_matcher.rb Improve messaging of .required and .optional 2019-02-14 17:48:26 -07:00
order_matcher.rb Prefer protected over private attributes 2014-06-27 14:41:54 -06:00
required_matcher.rb Improve messaging of .required and .optional 2019-02-14 17:48:26 -07:00
source_matcher.rb Prefer protected over private attributes 2014-06-27 14:41:54 -06:00
through_matcher.rb Prefer protected over private attributes 2014-06-27 14:41:54 -06:00