test/unit/address_test.rb in shoulda-2.0.6 vs test/unit/address_test.rb in shoulda-2.9.0
- old
+ new
@@ -2,9 +2,9 @@
class AddressTest < Test::Unit::TestCase
fixtures :all
should_belong_to :addressable
- should_require_unique_attributes :title, :scoped_to => [:addressable_id, :addressable_type]
+ should_validate_uniqueness_of :title, :scoped_to => [:addressable_id, :addressable_type]
should_ensure_length_at_least :zip, 5
should_only_allow_numeric_values_for :zip
end