Sha256: ab79947bdc6c70c4ab606b92e89870c33e8e163bfe2f4c4b39f30f75ba90c12d

Contents?: true

Size: 374 Bytes

Versions: 38

Compression:

Stored size: 374 Bytes

Contents

require File.dirname(__FILE__) + '/../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

  should_fail do
    should_not_allow_mass_assignment_of :name
  end
end

Version data entries

38 entries across 38 versions & 10 rubygems

Version Path
thoughtbot-shoulda-2.10.2 test/unit/tag_test.rb
lockbox_middleware-1.2.1 vendor/gems/shoulda-2.10.2/test/unit/tag_test.rb
robert-shoulda-2.10.4 test/unit/tag_test.rb
robert-shoulda-2.10.3 test/unit/tag_test.rb
simply_stated-0.0.5 vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/unit/tag_test.rb
simply_stated-0.0.4 vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/unit/tag_test.rb
shoulda-2.10.3 test/unit/tag_test.rb
tpitale-shoulda-2.11.0 test/unit/tag_test.rb
shoulda-2.10.2 test/unit/tag_test.rb
poolparty-1.3.15 vendor/gems/shoulda/test/unit/tag_test.rb
poolparty-1.3.14 vendor/gems/shoulda/test/unit/tag_test.rb
poolparty-1.3.13 vendor/gems/shoulda/test/unit/tag_test.rb
poolparty-1.3.8 vendor/gems/shoulda/test/unit/tag_test.rb
poolparty-1.3.7 vendor/gems/shoulda/test/unit/tag_test.rb
poolparty-1.3.6 vendor/gems/shoulda/test/unit/tag_test.rb
poolparty-1.3.4 vendor/gems/shoulda/test/unit/tag_test.rb
poolparty-1.3.3 vendor/gems/shoulda/test/unit/tag_test.rb
poolparty-1.3.1 vendor/gems/shoulda/test/unit/tag_test.rb