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