You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
321 B
11 lines
321 B
require File.dirname(__FILE__) + '/../test_helper'
|
|
|
|
class AddressTest < Test::Unit::TestCase
|
|
fixtures :all
|
|
|
|
should_belong_to :addressable
|
|
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
|