spec/spec_helper.rb in architect4r-0.3.2 vs spec/spec_helper.rb in architect4r-0.3.3.1
- old
+ new
@@ -39,9 +39,10 @@
property :human, :cast_to => TrueClass
property :vita, :cast_to => String, :localize => :en
property :birthday, :cast_to => Date
property :age_when_enlightend, :cast_to => Integer
property :note, :cast_to => String, :localize => true
+ timestamps!
# Validations
validates :name, :presence => true, :length => { :minimum => 3, :allow_nil => true }
validates :human, :inclusion => { :in => [true, false] }
validates :age_when_enlightend, :numericality => { :allow_nil => true }
\ No newline at end of file