Sha256: 5e2d358f54246d9a020b6a21e2b2ba9b85f437886da73e1c00f2178ab41a76fe
Contents?: true
Size: 328 Bytes
Versions: 22
Compression:
Stored size: 328 Bytes
Contents
require 'spec_helper' describe Hashie::Extensions::Dash::Coercion do class DashWithCoercion < Hashie::Dash include Hashie::Extensions::Dash::Coercion property :type, coerce: Symbol end it 'does the coercion of properties' do expect(DashWithCoercion.new(type: 'something')).to eq(type: :something) end end
Version data entries
22 entries across 20 versions & 4 rubygems