Sha256: 7898b290aa7f09a1028fae20a07e9e9de386977e7946f5a6dccef7b592b4455b

Contents?: true

Size: 574 Bytes

Versions: 11

Compression:

Stored size: 574 Bytes

Contents

require 'spec_helper'
require 'dm-core/support/ordered_set'
require 'unit/data_mapper/ordered_set/shared/each_spec'

describe 'DataMapper::OrderedSet' do
  subject { DataMapper::OrderedSet.new }

  it_should_behave_like 'DataMapper::OrderedSet'
end

describe 'DataMapper::OrderedSet#each' do
  subject { set.each { |entry| yields << entry } }

  let(:set)    { DataMapper::OrderedSet.new([ entry ]) }
  let(:entry)  { 1                                     }
  let(:yields) { []                                    }

  it_should_behave_like 'DataMapper::OrderedSet#each'
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
ardm-core-1.3.0 spec/unit/data_mapper/ordered_set/each_spec.rb
ardm-core-1.2.1 spec/unit/data_mapper/ordered_set/each_spec.rb
dm-core-1.2.1 spec/unit/data_mapper/ordered_set/each_spec.rb
ghost_dm-core-1.3.0.beta spec/unit/data_mapper/ordered_set/each_spec.rb
dm-core-1.2.0 spec/unit/data_mapper/ordered_set/each_spec.rb
dm-core-1.2.0.rc2 spec/unit/data_mapper/ordered_set/each_spec.rb
dm-core-1.2.0.rc1 spec/unit/data_mapper/ordered_set/each_spec.rb
dm-core-1.1.0 spec/unit/data_mapper/ordered_set/each_spec.rb
dm-core-1.1.0.rc3 spec/unit/data_mapper/ordered_set/each_spec.rb
dm-core-1.1.0.rc2 spec/unit/data_mapper/ordered_set/each_spec.rb
dm-core-1.1.0.rc1 spec/unit/data_mapper/ordered_set/each_spec.rb