Sha256: a670ace95b8f0ff58547bea54bf5c1ff25e3a3a4cc753e7480101c56d0910c83

Contents?: true

Size: 535 Bytes

Versions: 19

Compression:

Stored size: 535 Bytes

Contents

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

Version data entries

19 entries across 19 versions & 7 rubygems

Version Path
Flamefork-shoulda-2.10.1 test/unit/post_test.rb
Flamefork-shoulda-2.10.2 test/unit/post_test.rb
francois-shoulda-2.10.1 test/unit/post_test.rb
ratnikov-shoulda-2.9.0.1 test/unit/post_test.rb
ratnikov-shoulda-2.9.0.2 test/unit/post_test.rb
ratnikov-shoulda-2.9.0.3 test/unit/post_test.rb
ratnikov-shoulda-2.9.0 test/unit/post_test.rb
rmm5t-shoulda-2.9.1 test/unit/post_test.rb
technicalpickles-shoulda-2.10.0 test/unit/post_test.rb
thoughtbot-shoulda-2.10.0 test/unit/post_test.rb
thoughtbot-shoulda-2.10.1 test/unit/post_test.rb
thoughtbot-shoulda-2.9.0 test/unit/post_test.rb
thoughtbot-shoulda-2.9.1 test/unit/post_test.rb
thoughtbot-shoulda-2.9.2 test/unit/post_test.rb
shoulda-2.9.0 test/unit/post_test.rb
shoulda-2.9.1 test/unit/post_test.rb
shoulda-2.9.2 test/unit/post_test.rb
shoulda-2.10.0 test/unit/post_test.rb
shoulda-2.10.1 test/unit/post_test.rb