Sha256: b53bb8b9e1932cc277f6c28ba35d1263988c6bb9b7ed973e9e46ba0d15fa8e64

Contents?: true

Size: 445 Bytes

Versions: 48

Compression:

Stored size: 445 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_require_attributes :body, :message => /wtf/
  should_require_attributes :title
  should_only_allow_numeric_values_for :user_id
end

Version data entries

48 entries across 48 versions & 11 rubygems

Version Path
emschwar-shoulda-2.0.6.1 test/unit/post_test.rb
francois-shoulda-2.0.5.1 test/unit/post_test.rb
francois-shoulda-2.0.5.2 test/unit/post_test.rb
francois-shoulda-2.0.5.4 test/unit/post_test.rb
gsterndale-warrant-0.2.0 test/rails_root/vendor/gems/thoughtbot-shoulda-2.0.6/test/unit/post_test.rb
gsterndale-warrant-0.3.0 test/rails_root/vendor/gems/thoughtbot-shoulda-2.0.6/test/unit/post_test.rb
hashrocket-clearance-0.4.0 test/rails_root/vendor/gems/thoughtbot-shoulda-2.0.4/test/unit/post_test.rb
hashrocket-clearance-0.4.1 test/rails_root/vendor/gems/thoughtbot-shoulda-2.0.4/test/unit/post_test.rb
hashrocket-clearance-0.4.2 test/rails_root/vendor/gems/thoughtbot-shoulda-2.0.4/test/unit/post_test.rb
hashrocket-clearance-0.4.3 test/rails_root/vendor/gems/thoughtbot-shoulda-2.0.4/test/unit/post_test.rb
mattknox-goaloc-0.3.0 lib/goaloc/generators/resources/shoulda/test/unit/post_test.rb
mattknox-goaloc-0.4.0 lib/goaloc/generators/resources/shoulda/test/unit/post_test.rb
mjankowski-shoulda-2.0.4 test/unit/post_test.rb
mjankowski-shoulda-2.0.5 test/unit/post_test.rb
rmm5t-shoulda-2.0.2 test/unit/post_test.rb
rmm5t-shoulda-2.0.5 test/unit/post_test.rb
rmm5t-shoulda-2.0.6 test/unit/post_test.rb
technicalpickles-shoulda-2.0.0 test/unit/post_test.rb
technicalpickles-shoulda-2.0.1 test/unit/post_test.rb
technicalpickles-shoulda-2.0.2 test/unit/post_test.rb