module ActiveModelSerializersMatchers

Constants

VERSION

Public Instance Methods

have_many(association_root) click to toggle source
# File lib/active_model_serializers_matchers.rb, line 6
def have_many(association_root)
  AssociationMatcher.new(association_root, :has_many)
end
have_one(association_root) click to toggle source
# File lib/active_model_serializers_matchers.rb, line 10
def have_one(association_root)
  AssociationMatcher.new(association_root, :has_one)
end