You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
395 B
15 lines
395 B
require File.dirname(__FILE__) + '/../test_helper'
|
|
|
|
class PostTest < Test::Unit::TestCase
|
|
load_all_fixtures
|
|
|
|
should_belong_to :user
|
|
should_belong_to :owner
|
|
should_have_many :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
|
|
end
|