Sha256: 72dac3f7b8022f52d2a286acd7ceab248264857808b42171366f0eb441bd4251
Contents?: true
Size: 713 Bytes
Versions: 1
Compression:
Stored size: 713 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper')) describe DataMapper::Mongo::Model do before(:all) do class ::PropertyTest include DataMapper::Mongo::Resource property :array_attr, Array property :hash_attr, Hash end end describe '#property' do it 'should cast Array class to DataMapper::Mongo::Property::Array' do prop = PropertyTest.properties[:array_attr] prop.should be_kind_of(DataMapper::Mongo::Property::Array) end it 'should cast Hash class to DataMapper::Mongo::Property::Hash' do prop = PropertyTest.properties[:hash_attr] prop.should be_kind_of(DataMapper::Mongo::Property::Hash) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dm-mongo-adapter-0.6.0 | spec/public/model_spec.rb |