test/identity_test.rb in gotime-cassandra_object-2.7.12 vs test/identity_test.rb in gotime-cassandra_object-2.8.0

- old
+ new

@@ -1,11 +1,18 @@ require 'test_helper' class CassandraObject::IdentityTest < CassandraObject::TestCase - test 'id' do + test 'get id' do issue = Issue.create assert_equal issue.key.to_s, issue.id + end + + test 'set id' do + uuid = SimpleUUID::UUID.new.to_guid + issue = Issue.create id: uuid + + assert_equal issue.key.to_s, uuid end test 'equality of new records' do assert_not_equal Issue.new, Issue.new end \ No newline at end of file