Sha256: 038c9f48939b6ba01b0af7b3d8f59000019fbdc5217a5a34be582e070314a89f
Contents?: true
Size: 717 Bytes
Versions: 3
Compression:
Stored size: 717 Bytes
Contents
require './abstract_unit' class TestMiscellaneous < ActiveSupport::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 3, Product.count end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
composite_primary_keys-4.0.0 | test/test_miscellaneous.rb |
composite_primary_keys-4.0.0.beta9 | test/test_miscellaneous.rb |
composite_primary_keys-4.0.0.beta8 | test/test_miscellaneous.rb |