Sha256: 64422de69f27c1f1e6419ec6c2ed223a58a260fda70b69ec62d1eafbc6dc7654
Contents?: true
Size: 415 Bytes
Versions: 10
Compression:
Stored size: 415 Bytes
Contents
require 'spec_helper' describe Virtus::Attribute::Collection, '#member_type' do subject { object.member_type } context 'when specified' do let(:object) { Virtus::Attribute::Set.new('stuff', :member_type => Integer) } it { should be(Integer) } end context 'when not specified' do let(:object) { Virtus::Attribute::Set.new('stuff') } it { should be(Virtus::Attribute::Object) } end end
Version data entries
10 entries across 10 versions & 2 rubygems