test/unit/dog_test.rb in thoughtbot-shoulda-2.10.1 vs test/unit/dog_test.rb in thoughtbot-shoulda-2.10.2
- old
+ new
@@ -1,10 +1,9 @@
require File.dirname(__FILE__) + '/../test_helper'
-class Pets::DogTest < Test::Unit::TestCase
+class Pets::DogTest < ActiveSupport::TestCase
should_belong_to :user
should_belong_to :address, :dependent => :destroy
should_have_many :treats
should_have_and_belong_to_many :fleas
- should_require_attributes :treats, :fleas
- should_validate_presence_of :owner_id
+ should_validate_presence_of :owner_id, :treats, :fleas
end