Sha256: 5ceda1da55021896f866ff1fabbb1d1479f3b4e56fb58ba66b734465d088981c
Contents?: true
Size: 1.04 KB
Versions: 11
Compression:
Stored size: 1.04 KB
Contents
require 'spec_helper' require 'dm-core/support/ordered_set' require 'unit/data_mapper/ordered_set/shared/initialize_spec' describe 'DataMapper::OrderedSet#initialize' do context 'when no entries are given' do subject { DataMapper::OrderedSet.new } it_should_behave_like 'DataMapper::OrderedSet#initialize when no entries are given' end context 'when entries are given' do subject { DataMapper::OrderedSet.new(entries) } context 'and they do not contain duplicates' do let(:entries) { [ entry1, entry2 ] } let(:entry1) { 1 } let(:entry2) { 2 } it_should_behave_like 'DataMapper::OrderedSet#initialize when entries are given and they do not contain duplicates' end context 'and they contain duplicates' do let(:entries) { [ entry1, entry2 ] } let(:entry1) { 1 } let(:entry2) { 1 } it_should_behave_like 'DataMapper::OrderedSet#initialize when entries are given and they contain duplicates' end end end
Version data entries
11 entries across 11 versions & 3 rubygems