Sha256: 55d993028b48bdc017c3ecd8736e5c5ccec005a35565463a08a0c6bf211c3c00
Contents?: true
Size: 388 Bytes
Versions: 2
Compression:
Stored size: 388 Bytes
Contents
require 'spec_helper' describe Cassandra::Mapper::Utility::StoreInstances do let(:subject) { Class.new.tap {|it| it.extend described_class }} it 'should initialize instances with array' do subject.instances.should == [] end it 'should track new instances' do object1 = subject.new object2 = subject.new subject.instances.should == [object1, object2] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cassandra-mapper-0.2 | spec/cassandra/mapper/utility/store_instances_spec.rb |
cassandra-mapper-0.1 | spec/cassandra/mapper/utility/store_instances_spec.rb |