Sha256: f4b48e4ed9dcb9a4ae4b00a3b65aab172a6b0717e098cfd83473bcdc9937cd6b
Contents?: true
Size: 834 Bytes
Versions: 11
Compression:
Stored size: 834 Bytes
Contents
require 'unit/data_mapper/ordered_set/shared/append_spec' shared_examples_for 'DataMapper::SubjectSet#<< when appending a not yet included entry' do it_should_behave_like 'DataMapper::OrderedSet#<< when appending a not yet included entry' end shared_examples_for 'DataMapper::SubjectSet#<< when updating an entry with the same cache key and the new entry is already included' do it_should_behave_like 'DataMapper::OrderedSet#<< when updating an already included entry' end shared_examples_for 'DataMapper::SubjectSet#<< when updating an entry with the same cache key and the new entry is not yet included' do its(:entries) { should_not include(entry1) } its(:entries) { should include(entry2) } it 'should insert the new entry at the old position' do subject.entries.index(entry2).should == @old_index end end
Version data entries
11 entries across 11 versions & 3 rubygems