Sha256: 460b9e6984b3e356a409c0d73e1dade4ad2f3005d42321cf67c27d716c247daa
Contents?: true
Size: 514 Bytes
Versions: 48
Compression:
Stored size: 514 Bytes
Contents
require 'test_helper' class CassandraObject::IdentityTest < CassandraObject::TestCase test 'primary_key' do assert_equal 'id', Issue.primary_key end test 'default _generate_key' do issue = Issue.new assert_not_nil Issue._generate_key(issue) end test 'custom key' do model = temp_object do key do "name:#{name}" end attr_accessor :name end record = model.new record.name = 'bar' assert_equal 'name:bar', model._generate_key(record) end end
Version data entries
48 entries across 48 versions & 3 rubygems