Sha256: 65be9d862b52d6b54ec66f04e2a2242a8e952af2beaed0fa3382ee8ec5d56012

Contents?: true

Size: 571 Bytes

Versions: 24

Compression:

Stored size: 571 Bytes

Contents

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

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

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
composite_primary_keys-1.0.8 test/test_dummy.rb
composite_primary_keys-1.0.7 test/test_dummy.rb
composite_primary_keys-1.0.6 test/test_dummy.rb
composite_primary_keys-1.0.5 test/test_dummy.rb