Sha256: a1e421d6fd2108e61753e956c53ee3671cff25186f7cc772c90611401b5d6b3a
Contents?: true
Size: 516 Bytes
Versions: 3
Compression:
Stored size: 516 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') class CompanyByDefaultTest < ActiveRecord::TestCase def setup @company = create_company end def test_should_not_have_any_addresses assert @company.addresses.empty? end end class CompanyWithAddressesTest < ActiveRecord::TestCase def setup @company = create_company @address = create_address(:addressable => @company) end def test_should_have_addresses assert_equal [@address], @company.addresses end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
has_addresses-0.5.2 | test/functional/has_addresses_test.rb |
has_addresses-0.5.0 | test/functional/has_addresses_test.rb |
has_addresses-0.5.1 | test/functional/has_addresses_test.rb |