Sha256: de88e9a0da5f5bbdb576f11af993957f7d60ef636db9984e163d140d0d341f3f

Contents?: true

Size: 376 Bytes

Versions: 48

Compression:

Stored size: 376 Bytes

Contents

require 'test_helper'

class CassandraObject::AttributeMethods::DefinitionTest < CassandraObject::TestCase
  class TestType < CassandraObject::Types::BaseType
  end

  test 'typecast' do
    definition = CassandraObject::AttributeMethods::Definition.new(:foo, TestType, {a: :b})

    assert_equal 'foo', definition.name
    assert_kind_of TestType, definition.coder
  end
end

Version data entries

48 entries across 48 versions & 3 rubygems

Version Path
extendi-cassandra_object-1.0.0 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.12.2 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.12.1 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.12.0 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.11.6 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.11.5 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.11.4 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.11.3 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.11.2 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.11.1 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.11.0 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.10.5 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.10.4 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.10.3 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.10.2 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.10.1 test/unit/attribute_methods/definition_test.rb
cassandra_object_rails-0.0.1 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.10.0 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.9.2 test/unit/attribute_methods/definition_test.rb
gotime-cassandra_object-4.9.1 test/unit/attribute_methods/definition_test.rb