Sha256: ca394bc771920b763294878737c7b7f5f644abfe46ac884b9fe7ebc8b42f083d
Contents?: true
Size: 424 Bytes
Versions: 2
Compression:
Stored size: 424 Bytes
Contents
require_relative '../../../../spec_helper' shared_examples 'DataMapper::OrderedSet' do it { is_expected.to be_kind_of(Enumerable) } it 'case matches Enumerable' do expect(subject.is_a?(Enumerable)).to be(true) end end shared_examples 'DataMapper::OrderedSet#each' do it { is_expected.to equal(set) } it 'yields each column' do expect { subject }.to change { yields.dup }.from([]).to([entry]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sbf-dm-core-1.3.0 | spec/unit/data_mapper/ordered_set/shared/each_spec.rb |
sbf-dm-core-1.3.0.beta | spec/unit/data_mapper/ordered_set/shared/each_spec.rb |