Sha256: 8d300c912b5111ffba5d23359e46908e626d3b742aa1b6f8735509f4dce2efe5
Contents?: true
Size: 533 Bytes
Versions: 2
Compression:
Stored size: 533 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class HasPhoneNumbersTest < Test::Unit::TestCase fixtures :phone_numbers, :people def test_should_create_one_association assert_equal phone_numbers(:cell), people(:john_doe).cell_phone assert_equal phone_numbers(:work), people(:john_doe).work_phone end def test_should_create_many_association assert_equal 2, people(:john_doe).phone_numbers.size assert_equal [], [phone_numbers(:cell), phone_numbers(:work)] - people(:john_doe).phone_numbers end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
has_phone_numbers-0.0.1 | test/unit/has_phone_numbers_test.rb |
has_phone_numbers-0.0.2 | test/unit/has_phone_numbers_test.rb |