thoughtbot--shoulda-matchers/lib/shoulda/matchers/active_record
Elliot Winkler c6e1f86fa6 Fix converting association options to a Relation
Under Rails 3 when using an association matcher in conjunction with a
submatcher such as #order, we have to take the options on the
association (:conditions, :order, etc.) and convert them to an
ActiveRecord::Relation object. This happens in ModelReflector.

Unfortunately, converting an :includes option was broken. This is in
part due to ModelReflector not having proper tests, but also, the method
that does the conversion to Relation is rather complex and could be
broken up so it can be tested better. In fact I noticed that there's a
lot of stuff in ModelReflector that does stuff around a Reflection
object, so it would be better to define a ModelReflection class that
simply decorates a Reflection. That's what I've done and also added
proper tests.
2013-11-01 09:41:32 -06:00
..
association_matchers Fix converting association options to a Relation 2013-11-01 09:41:32 -06:00
accept_nested_attributes_for_matcher.rb Rename failure_message and negative_failure_message 2013-03-08 14:49:12 -05:00
association_matcher.rb Use relations to define conditions and order on associations 2013-08-16 16:17:22 -06:00
have_db_column_matcher.rb Rename failure_message and negative_failure_message 2013-03-08 14:49:12 -05:00
have_db_index_matcher.rb Rename failure_message and negative_failure_message 2013-03-08 14:49:12 -05:00
have_readonly_attribute_matcher.rb Rename failure_message and negative_failure_message 2013-03-08 14:49:12 -05:00
serialize_matcher.rb Rename failure_message and negative_failure_message 2013-03-08 14:49:12 -05:00