Sha256: da011ae5fa1e226f355bf2152a6213257bf86a84470267b6ad980a6901e296ab

Contents?: true

Size: 196 Bytes

Versions: 5

Compression:

Stored size: 196 Bytes

Contents

require 'abstract_unit'

class TestValidations < ActiveSupport::TestCase
  fixtures :seats

  def test_uniqueness_validation_on_saved_record
    s = Seat.find([1,1])
    assert s.valid?
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
composite_primary_keys-3.1.5 test/test_validations.rb
composite_primary_keys-3.1.4 test/test_validations.rb
composite_primary_keys-3.1.2 test/test_validations.rb
composite_primary_keys-3.1.1 test/test_validations.rb
composite_primary_keys-3.1.0 test/test_validations.rb