Sha256: d5cf9655b300eefd908529cc4fd9be40f0519c04884c5cab0b19a9521d1cef04
Contents?: true
Size: 535 Bytes
Versions: 38
Compression:
Stored size: 535 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class PostTest < ActiveSupport::TestCase fixtures :all should_belong_to :user should_belong_to :owner should_have_many :tags, :through => :taggings should_have_many :through_tags, :through => :taggings should_validate_uniqueness_of :title 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
Version data entries
38 entries across 38 versions & 10 rubygems