Sha256: 94e2f7e9950b015d48ab60ddb328d7c03e31fd018a3d851f1ad665e8466b1513

Contents?: true

Size: 392 Bytes

Versions: 1

Compression:

Stored size: 392 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

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

  should_ensure_length_at_least :name, 2

  should_protect_attributes :secret
  should_allow_mass_assignment_of :name

  should_fail do
    should_not_allow_mass_assignment_of :name
    should_have_valid_fixtures
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
francois-shoulda-2.10.1 test/unit/tag_test.rb