test/rails_root/app/models/user.rb in shoulda-2.9.1 vs test/rails_root/app/models/user.rb in shoulda-2.9.2

- old
+ new

@@ -18,10 +18,11 @@ attr_protected :password attr_readonly :name validates_format_of :email, :with => /\w*@\w*.com/ validates_length_of :email, :in => 1..100 - validates_inclusion_of :age, :in => 1..100 + validates_numericality_of :age, :greater_than_or_equal_to => 1, + :less_than_or_equal_to => 100 validates_acceptance_of :eula validates_uniqueness_of :email, :scope => :name, :case_sensitive => false validates_length_of :ssn, :is => 9, :message => "Social Security Number is not the right length" validates_numericality_of :ssn end