-require 'abstract_unit'\r
-require 'fixtures/reference_type'\r
-require 'fixtures/reference_code'\r
-\r
-class TestMiscellaneous < Test::Unit::TestCase\r
- fixtures :reference_types, :reference_codes, :products\r
- \r
- CLASSES = {\r
- :single => {\r
- :class => ReferenceType,\r
- :primary_keys => :reference_type_id,\r
- },\r
- :dual => { \r
- :class => ReferenceCode,\r
- :primary_keys => [:reference_type_id, :reference_code],\r
- },\r
- }\r
- \r
- def setup\r
- self.class.classes = CLASSES\r
- end\r
-\r
- def test_composite_class\r
- testing_with do\r
- assert_equal composite?, @klass.composite?\r
- end\r
- end\r
-\r
- def test_composite_instance\r
- testing_with do\r
- assert_equal composite?, @first.composite?\r
- end\r
- end\r
- \r
- def test_count\r
- assert_equal 2, Product.count\r
- end\r
- \r
+require 'abstract_unit'
+require 'fixtures/reference_type'
+require 'fixtures/reference_code'
+
+class TestMiscellaneous < Test::Unit::TestCase
+ fixtures :reference_types, :reference_codes, :products
+
+ CLASSES = {
+ :single => {
+ :class => ReferenceType,
+ :primary_keys => :reference_type_id,
+ },
+ :dual => {
+ :class => ReferenceCode,
+ :primary_keys => [:reference_type_id, :reference_code],
+ },
+ }
+
+ def setup
+ self.class.classes = CLASSES
+ end
+
+ def test_composite_class
+ testing_with do
+ assert_equal composite?, @klass.composite?
+ end
+ end
+
+ def test_composite_instance
+ testing_with do
+ assert_equal composite?, @first.composite?
+ end
+ end
+
+ def test_count
+ assert_equal 2, Product.count
+ end
+