Sha256: bb1cd935442abb14734f049f9bfb692aa669a0727dada4a9cc94eaf43947f3d9
Contents?: true
Size: 276 Bytes
Versions: 9
Compression:
Stored size: 276 Bytes
Contents
require File.expand_path('../abstract_unit', __FILE__) class TestValidations < ActiveSupport::TestCase fixtures :seats def test_uniqueness_validation_persisted seat = Seat.find([1,1]) assert(seat.valid?) seat.customer = 2 assert(!seat.valid?) end end
Version data entries
9 entries across 9 versions & 1 rubygems