test/unit/post_test.rb in rmm5t-shoulda-2.0.6 vs test/unit/post_test.rb in rmm5t-shoulda-2.9.1

- old
+ new

@@ -7,9 +7,13 @@ should_belong_to :owner should_have_many :tags, :through => :taggings should_have_many :through_tags, :through => :taggings should_require_unique_attributes :title - should_require_attributes :body, :message => /wtf/ - should_require_attributes :title - should_only_allow_numeric_values_for :user_id + should_validate_presence_of :body, :message => /wtf/ + should_validate_presence_of :title + should_validate_numericality_of :user_id + + should_fail do + should_validate_uniqueness_of :title, :case_sensitive => false + end end