Sha256: 700ee4a06abf87203e3c5253362bc52aecd1d7ca477e3b62b962c4cdc658979d

Contents?: true

Size: 424 Bytes

Versions: 78

Compression:

Stored size: 424 Bytes

Contents

require 'test_helper'

class CassandraObject::AttributesTest < CassandraObject::TestCase

  class A < CassandraObject::Base
    attribute :a, :type => :integer
  end

  class B < CassandraObject::Base
    attribute :b, :type => :integer
  end

  test 'model_attributes' do
    assert_equal %W[created_at updated_at a], A.model_attributes.keys
    assert_equal %W[created_at updated_at b], B.model_attributes.keys
  end

end

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
sessionm-cassandra_object-4.0.32 test/attributes_test.rb
sessionm-cassandra_object-4.0.31 test/attributes_test.rb
sessionm-cassandra_object-4.0.30 test/attributes_test.rb
sessionm-cassandra_object-4.0.29 test/attributes_test.rb
sessionm-cassandra_object-4.0.28 test/attributes_test.rb
sessionm-cassandra_object-4.0.27 test/attributes_test.rb
sessionm-cassandra_object-4.0.26 test/attributes_test.rb
sessionm-cassandra_object-4.0.25 test/attributes_test.rb
sessionm-cassandra_object-4.0.24 test/attributes_test.rb
sessionm-cassandra_object-4.0.23 test/attributes_test.rb
sessionm-cassandra_object-4.0.22 test/attributes_test.rb
sessionm-cassandra_object-4.0.21 test/attributes_test.rb
sessionm-cassandra_object-4.0.20 test/attributes_test.rb
sessionm-cassandra_object-2.7.5 test/attributes_test.rb
sessionm-cassandra_object-2.7.4 test/attributes_test.rb
sessionm-cassandra_object-4.0.18 test/attributes_test.rb
sessionm-cassandra_object-4.0.17 test/attributes_test.rb
sessionm-cassandra_object-4.0.16 test/attributes_test.rb
sessionm-cassandra_object-4.0.15 test/attributes_test.rb
sessionm-cassandra_object-4.0.14 test/attributes_test.rb