Sha256: a5b2b46e9b5cf77a6a4d134a07bd9c0c6431c0ca0f17d547db0e2934669a3f40

Contents?: true

Size: 404 Bytes

Versions: 13

Compression:

Stored size: 404 Bytes

Contents

require 'test_helper'

class Superstore::AttributeMethods::DefinitionTest < Superstore::TestCase
  class TestType < Superstore::Types::BaseType
    def typecast(v)
      "#{v}-foo"
    end
  end

  test 'initialize' do
    definition = Superstore::AttributeMethods::Definition.new(Issue, :foo, TestType, {})

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
superstore-2.4.4 test/unit/attribute_methods/definition_test.rb
superstore-2.4.3 test/unit/attribute_methods/definition_test.rb
superstore-2.4.2 test/unit/attribute_methods/definition_test.rb
superstore-2.4.1 test/unit/attribute_methods/definition_test.rb
superstore-2.4.0 test/unit/attribute_methods/definition_test.rb
superstore-2.3.0 test/unit/attribute_methods/definition_test.rb
superstore-2.2.0 test/unit/attribute_methods/definition_test.rb
superstore-2.1.3 test/unit/attribute_methods/definition_test.rb
superstore-2.1.2 test/unit/attribute_methods/definition_test.rb
superstore-2.1.1 test/unit/attribute_methods/definition_test.rb
superstore-2.1.0 test/unit/attribute_methods/definition_test.rb
superstore-2.0.1 test/unit/attribute_methods/definition_test.rb
superstore-2.0.0 test/unit/attribute_methods/definition_test.rb