Sha256: 2c10b8c1919bcbc06810b032babbeba10e377f42d71f371753f60101ea578aed
Contents?: true
Size: 751 Bytes
Versions: 3
Compression:
Stored size: 751 Bytes
Contents
require 'abstract_unit' require 'fixtures/reference_type' require 'fixtures/reference_code' class MiscellaneousTest < Test::Unit::TestCase fixtures :reference_types, :reference_codes CLASSES = { :single => { :class => ReferenceType, :primary_keys => [:reference_type_id], }, :dual => { :class => ReferenceCode, :primary_keys => [:reference_type_id, :reference_code], }, } def setup super 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
composite_primary_keys-0.3.1 | test/miscellaneous_test.rb |
composite_primary_keys-0.3.2 | test/miscellaneous_test.rb |
composite_primary_keys-0.3.3 | test/miscellaneous_test.rb |