Sha256: 130ff4a48351d6c38aae99ab0376871d7699f98578d659e3e2f76157a63f5db2
Contents?: true
Size: 458 Bytes
Versions: 2
Compression:
Stored size: 458 Bytes
Contents
require 'spec_helper' describe MemoryModel::Base::Collectable 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-0.0.2 | spec/memory_model/base/collectable_spec.rb |
memory_model-0.0.1 | spec/memory_model/base/collectable_spec.rb |