require 'test_helper'

class TagTest < ActiveSupport::TestCase
  should_have_many :taggings, :dependent => :destroy
  should_have_many :posts

  should_ensure_length_at_least :name, 2

  should_not_allow_mass_assignment_of :secret
  should_allow_mass_assignment_of :name
end
