thoughtbot/shoulda-matchers — pull request #97 by danieltamiosso (2012-04-11 17:29:17+00:00)
Title: Added possibility to check whether the association is being validated

Simple idea to check whether you need validation of an association. I think it would be cool if we could validate the default values ​​of each type of association. For example a has_many association, has as its default value true to validate option...

But I do not know if this value is parameterized somewhere in Rails, or is only within the method declaration:
https://github.com/rails/rails/blob/master/activerecord/lib/active_record/associations/has_many_association.rb#L10

Thanks!