Sha256: 7659d26c2f23d2ac604826326e4046d3282903004b942ff16361b74bb97acde8

Contents?: true

Size: 508 Bytes

Versions: 29

Compression:

Stored size: 508 Bytes

Contents

require 'test_helper'

class CassandraObject::BaseTest < CassandraObject::TestCase
  class Son < CassandraObject::Base
  end

  class Grandson < Son
  end

  test 'base_class' do
    assert_equal CassandraObject::Base, CassandraObject::Base
    assert_equal Son, Son.base_class
    assert_equal Son, Grandson.base_class
  end

  test 'column family' do
    assert_equal 'CassandraObject::BaseTest::Sons', Son.column_family
    assert_equal 'CassandraObject::BaseTest::Sons', Grandson.column_family
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
cassandra_object_rails-0.0.1 test/unit/base_test.rb
gotime-cassandra_object-4.10.0 test/unit/base_test.rb
gotime-cassandra_object-4.9.2 test/unit/base_test.rb
gotime-cassandra_object-4.9.1 test/unit/base_test.rb
gotime-cassandra_object-4.9.0 test/unit/base_test.rb
gotime-cassandra_object-4.8.1 test/unit/base_test.rb
gotime-cassandra_object-4.8.0 test/unit/base_test.rb
gotime-cassandra_object-4.7.3 test/unit/base_test.rb
gotime-cassandra_object-4.7.2 test/unit/base_test.rb