module Shoulda::Matchers::ActiveRecord
def accept_nested_attributes_for(name)
-
(AcceptNestedAttributesForMatcher)
-
def accept_nested_attributes_for(name) AcceptNestedAttributesForMatcher.new(name) end
def belong_to(name)
-
(AssociationMatcher)
-
def belong_to(name) AssociationMatcher.new(:belongs_to, name) end
def define_enum_for(attribute_name)
-
(DefineEnumForMatcher)
-
def define_enum_for(attribute_name) DefineEnumForMatcher.new(attribute_name) end
def have_and_belong_to_many(name)
-
(AssociationMatcher)
-
def have_and_belong_to_many(name) AssociationMatcher.new(:has_and_belongs_to_many, name) end
def have_db_column(column)
-
(HaveDbColumnMatcher)
-
def have_db_column(column) HaveDbColumnMatcher.new(column) end
def have_db_index(columns)
-
(HaveDbIndexMatcher)
-
def have_db_index(columns) HaveDbIndexMatcher.new(columns) end
def have_many(name)
-
(AssociationMatcher)
-
def have_many(name) AssociationMatcher.new(:has_many, name) end
def have_one(name)
-
(AssociationMatcher)
-
def have_one(name) AssociationMatcher.new(:has_one, name) end
def have_readonly_attribute(value)
-
(HaveReadonlyAttributeMatcher)
-
def have_readonly_attribute(value) HaveReadonlyAttributeMatcher.new(value) end
def serialize(name)
-
(SerializeMatcher)
-
def serialize(name) SerializeMatcher.new(name) end
def validate_uniqueness_of(attr)
-
(ValidateUniquenessOfMatcher)
- -
(ValidateUniquenessOfMatcher)
-
def validate_uniqueness_of(attr) ValidateUniquenessOfMatcher.new(attr) end