Sha256: 9fd8ec3a975ba6384164827e20303c90a5c37a99037dd9e852cede2208617d6b
Contents?: true
Size: 746 Bytes
Versions: 3
Compression:
Stored size: 746 Bytes
Contents
require File.expand_path('../abstract_unit', __FILE__) 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-5.0.0.rc1 | test/test_miscellaneous.rb |
composite_primary_keys-4.1.2 | test/test_miscellaneous.rb |
composite_primary_keys-4.1.1 | test/test_miscellaneous.rb |