class Shoulda::ActiveRecord::Matchers::ValidatePresenceOfMatcher
def collection?
def collection? if reflection = @subject.class.reflect_on_association(@attribute) [:has_many, :has_and_belongs_to_many].include?(reflection.macro) else false end end
def collection? if reflection = @subject.class.reflect_on_association(@attribute) [:has_many, :has_and_belongs_to_many].include?(reflection.macro) else false end end