Sha256: 6a07c59e4b0aa0b2e19749fec86319a9294811e5be07684f584f3c05c67bec1b

Contents?: true

Size: 356 Bytes

Versions: 18

Compression:

Stored size: 356 Bytes

Contents

require 'test_helper'

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

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

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
superstore-1.2.0 test/unit/attribute_methods/definition_test.rb
superstore-1.1.4 test/unit/attribute_methods/definition_test.rb
superstore-1.1.3 test/unit/attribute_methods/definition_test.rb
superstore-1.1.2 test/unit/attribute_methods/definition_test.rb
superstore-1.1.1 test/unit/attribute_methods/definition_test.rb
superstore-1.1.0 test/unit/attribute_methods/definition_test.rb
superstore-1.0.12 test/unit/attribute_methods/definition_test.rb
superstore-1.0.11 test/unit/attribute_methods/definition_test.rb
superstore-1.0.10 test/unit/attribute_methods/definition_test.rb
superstore-1.0.9 test/unit/attribute_methods/definition_test.rb
superstore-1.0.8 test/unit/attribute_methods/definition_test.rb
superstore-1.0.7 test/unit/attribute_methods/definition_test.rb
superstore-1.0.6 test/unit/attribute_methods/definition_test.rb
superstore-1.0.5 test/unit/attribute_methods/definition_test.rb
superstore-1.0.4 test/unit/attribute_methods/definition_test.rb
superstore-1.0.3 test/unit/attribute_methods/definition_test.rb
superstore-1.0.2 test/unit/attribute_methods/definition_test.rb
superstore-1.0.0 test/unit/attribute_methods/definition_test.rb