test/validations_test.rb in sessionm-cassandra_object-2.2.6 vs test/validations_test.rb in sessionm-cassandra_object-2.2.8

- old
+ new

@@ -1,15 +1,15 @@ require 'test_helper' class CassandraObject::ValidationsTest < CassandraObject::TestCase test 'create!' do begin - Issue.validates(:description, presence: true) + Issue.validates(:description, :presence => true) - Issue.create!(description: 'lol') + Issue.create!(:description => 'lol') - assert_raise(CassandraObject::RecordInvalid) { Issue.create!(description: '') } + assert_raise(CassandraObject::RecordInvalid) { Issue.create!(:description => '') } ensure Issue.reset_callbacks(:validate) end end -end \ No newline at end of file +end