Sha256: 558f2d031181da2e9d367ae4c6aa061f1f28e7cf68e89f0d69e43d69c9ce7bc6
Contents?: true
Size: 872 Bytes
Versions: 11
Compression:
Stored size: 872 Bytes
Contents
require 'spec_helper' shared_examples_for 'DataMapper::OrderedSet#merge when merging two empty sets' do it { should be_instance_of(set.class) } it { should equal(set) } it { should == set } end shared_examples_for 'DataMapper::OrderedSet#merge when merging a set with already present entries' do it { should equal(set) } it { should == set } it { should include(entry) } it 'does not add an entry to the set' do expect { subject }.to_not change { set.size } end end shared_examples_for 'DataMapper::OrderedSet#merge when merging a set with not yet present entries' do it { should equal(set) } it { should != set } it { should include(entry1) } it { should include(entry2) } it 'adds an entry to the set' do expect { subject }.to change { set.size }.from(1).to(2) end end
Version data entries
11 entries across 11 versions & 3 rubygems