Sha256: ed376a6a03ae9c8363b7dc689172c6cc5f2cc1a0b619f5ccc4e8d798df41a127
Contents?: true
Size: 377 Bytes
Versions: 20
Compression:
Stored size: 377 Bytes
Contents
require 'test_helper' class CassandraObject::ValidationsTest < CassandraObject::TestCase test 'create!' do begin Issue.validates(:description, :presence => true) Issue.create!(:description => 'lol') assert_raise(CassandraObject::RecordInvalid) { Issue.create!(:description => '') } ensure Issue.reset_callbacks(:validate) end end end
Version data entries
20 entries across 20 versions & 1 rubygems