Sha256: c33f4512d99a0a75804c4558255e1cf7bb6e886523117d2261ab8cc2af60a86a

Contents?: true

Size: 574 Bytes

Versions: 4

Compression:

Stored size: 574 Bytes

Contents

require 'abstract_unit'
require 'fixtures/reference_type'
require 'fixtures/reference_code'

class TestDummy < ActiveSupport::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
    self.class.classes = classes
  end
  
  def test_truth
    testing_with do
      assert true
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
kovyrin-composite_primary_keys-2.3.2 test/test_dummy.rb
composite_primary_keys-2.3.5.1 test/test_dummy.rb
composite_primary_keys-2.3.5 test/test_dummy.rb
composite_primary_keys-2.3.2 test/test_dummy.rb