Sha256: 2e5c5de393a53b0f31131467070452da6113fa7b50060dd12545a4266f1f2c56
Contents?: true
Size: 281 Bytes
Versions: 13
Compression:
Stored size: 281 Bytes
Contents
require 'spec_helper' describe Virtus::Attribute::Array, '#coerce' do subject { attribute.coerce(value) } let(:attribute) { described_class.new(:colors) } context 'with a Hash' do let(:value) { { :foo => 'bar' } } it { should eql([ [ :foo, 'bar' ] ]) } end end
Version data entries
13 entries across 13 versions & 2 rubygems