1 require 'abstract_unit'
\r
2 require 'fixtures/reference_type'
\r
3 require 'fixtures/reference_code'
\r
5 class TestMiscellaneous < Test::Unit::TestCase
\r
6 fixtures :reference_types, :reference_codes, :products
\r
10 :class => ReferenceType,
\r
11 :primary_keys => :reference_type_id,
\r
14 :class => ReferenceCode,
\r
15 :primary_keys => [:reference_type_id, :reference_code],
\r
20 self.class.classes = CLASSES
\r
23 def test_composite_class
\r
25 assert_equal composite?, @klass.composite?
\r
29 def test_composite_instance
\r
31 assert_equal composite?, @first.composite?
\r
36 assert_equal 2, Product.count
\r