module DataMapper::Matchers
Public Instance Methods
belong_to(name)
click to toggle source
# File lib/dm/matchers/belong_to.rb, line 32 def belong_to(name) BelongTo.new(name) end
have_many(name)
click to toggle source
# File lib/dm/matchers/have_many.rb, line 38 def have_many(name) HaveMany.new(name) end
have_many_and_belong_to(name)
click to toggle source
# File lib/dm/matchers/have_many_and_belong_to.rb, line 29 def have_many_and_belong_to(name) HaveManyAndBelongTo.new(name) end
have_one(name)
click to toggle source
# File lib/dm/matchers/have_one.rb, line 30 def have_one(name) HaveOne.new(name) end
have_property(name)
click to toggle source
# File lib/dm/matchers/have_property.rb, line 28 def have_property(name) HaveProperty.new(name) end
validate_format_of(property)
click to toggle source
# File lib/dm/matchers/validate_format_of.rb, line 3 def validate_format_of(property) ValidateFormatOf.new(property) end
validate_length_of(property)
click to toggle source
# File lib/dm/matchers/validate_length_of.rb, line 3 def validate_length_of(property) ValidateLengthOf.new(property) end
validate_presence_of(property)
click to toggle source
# File lib/dm/matchers/validate_presence_of.rb, line 3 def validate_presence_of(property) ValidatePresenceOf.new(property) end
validate_uniqueness_of(property)
click to toggle source
# File lib/dm/matchers/validate_uniqueness_of.rb, line 3 def validate_uniqueness_of(property) ValidateUniquenessOf.new(property) end