Sha256: 4279c526df9ca20064486f2976d77f5bf1c53c379026728fb9d1b6e10d6888c9
Contents?: true
Size: 500 Bytes
Versions: 10
Compression:
Stored size: 500 Bytes
Contents
require 'spec_helper' describe Virtus::Attribute::Collection::MemberCoercion, '#coerce_and_append_member' do subject { object.coerce_and_append_member(collection, entry) } let(:attribute_class) do Class.new(Virtus::Attribute::Collection) do include Virtus::Attribute::Collection::MemberCoercion self end end let(:object) { attribute_class.new('stuff', :member_type => Integer) } let(:collection) { [] } let(:entry) { '1' } it { should eql([ 1 ]) } end
Version data entries
10 entries across 10 versions & 2 rubygems