Sha256: 840b380c78cece918684753705d057cbde7b578dbe74415e93c959edbca2985b

Contents?: true

Size: 582 Bytes

Versions: 3

Compression:

Stored size: 582 Bytes

Contents

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

class DummyTest < 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_truth
    testing_with do
      assert true
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
composite_primary_keys-0.3.3 test/dummy_test.rb
composite_primary_keys-0.6.0 test/dummy_test.rb
composite_primary_keys-0.6.1 test/dummy_test.rb