Sha256: 7e8b5ae801aadd7a83ba34ac80a2b9e9300a7cdc37bc377cb6493b615a923177

Contents?: true

Size: 633 Bytes

Versions: 11

Compression:

Stored size: 633 Bytes

Contents

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

describe 'DataMapper::OrderedSet#clear' do
  subject { ordered_set.clear }

  let(:ordered_set) { DataMapper::OrderedSet.new(entries) }

  let(:entry1) { 1 }
  let(:entry2) { 2 }

  context 'when no entries are present' do
    let(:entries) { [] }

    it_should_behave_like 'DataMapper::OrderedSet#clear when no entries are present'
  end

  context 'when entries are present' do
    let(:entries) { [ entry1, entry2 ] }

    it_should_behave_like 'DataMapper::OrderedSet#clear when entries are present'
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

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