Organizando plugins e gems.

This commit is contained in:
2009-07-16 11:51:47 -03:00
parent 4e22c87074
commit dcfc38eb09
506 changed files with 10538 additions and 45562 deletions

View File

@@ -0,0 +1,19 @@
require File.dirname(__FILE__) + '/../test_helper'
class PostTest < Test::Unit::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_require_unique_attributes :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