test/validations_test.rb in gotime-cassandra_object-2.7.0 vs test/validations_test.rb in gotime-cassandra_object-2.7.1

- old
+ new

@@ -10,6 +10,18 @@ assert_raise(CassandraObject::RecordInvalid) { Issue.create!(description: '') } ensure Issue.reset_callbacks(:validate) end end + + test 'save!' do + begin + Issue.validates(:description, presence: true) + + Issue.new(description: 'lol').save! + + assert_raise(CassandraObject::RecordInvalid) { Issue.new(description: '').save! } + ensure + Issue.reset_callbacks(:validate) + end + end end \ No newline at end of file