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