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.1.1 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.1.0 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.20 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.19 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.18 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.17 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.16 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.15 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.14 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.13 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.12 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.11 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.10 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.9 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.8 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.7 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.6 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.5 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.4 test/unit/attribute_methods/definition_test.rb
extendi-cassandra_object-1.0.1 test/unit/attribute_methods/definition_test.rb