test/unit/dog_test.rb in thoughtbot-shoulda-2.0.6 vs test/unit/dog_test.rb in thoughtbot-shoulda-2.9.0
- old
+ new
@@ -1,7 +1,10 @@
require File.dirname(__FILE__) + '/../test_helper'
-class DogTest < Test::Unit::TestCase
+class Pets::DogTest < Test::Unit::TestCase
should_belong_to :user
- should_belong_to :address
+ 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
end