Sha256: 1969aa6fc2767cae5a22c65c2f8162b71178374cbaf74c5390b3e39e896acde5
Contents?: true
Size: 458 Bytes
Versions: 2
Compression:
Stored size: 458 Bytes
Contents
require 'spec_helper' describe MemoryModel::Base::Collectible do let(:model) do Class.new(MemoryModel::Base) do field :foo field :bar end end describe '.collection' do it 'should be a collection' do model.collection.should be_a MemoryModel::Collection end end describe '.inherited' do it 'should use its parents collection' do Class.new(model).collection.should == model.collection end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
memory_model-1.0.0 | spec/memory_model/base/collectible_spec.rb |
memory_model-0.1.0 | spec/memory_model/base/collectible_spec.rb |