1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00
thoughtbot--shoulda-matchers/test/unit/address_test.rb
Ryan McGeary 42d4de6e97 Deprecated load_all_fixtures [#65]
* Use `fixtures :all` instead
2008-09-02 16:49:13 -04:00

10 lines
324 B
Ruby

require File.dirname(__FILE__) + '/../test_helper'
class AddressTest < Test::Unit::TestCase
fixtures :all
should_belong_to :addressable
should_require_unique_attributes :title, :scoped_to => [:addressable_id, :addressable_type]
should_ensure_length_at_least :zip, 5
should_only_allow_numeric_values_for :zip
end