Sha256: f5dcbf87f5582b27843a9c883351c8cc42967ac49e07e0645e483ac5a9223c9f

Contents?: true

Size: 715 Bytes

Versions: 2

Compression:

Stored size: 715 Bytes

Contents

require_relative '../../../spec_helper'
require 'dm-core/support/ordered_set'
require_relative 'shared/include_spec'

describe 'DataMapper::OrderedSet#include?' do
  subject { ordered_set.include?(entry) }

  let(:ordered_set) { set }

  context 'when the entry is present' do
    let(:set)   { DataMapper::OrderedSet.new([ entry ]) }
    let(:entry) { 1                                     }

    it_behaves_like 'DataMapper::OrderedSet#include? when the entry is present'
  end

  context 'when the entry is not present' do
    let(:set)   { DataMapper::OrderedSet.new }
    let(:entry) { 1                          }

    it_behaves_like 'DataMapper::OrderedSet#include? when the entry is not present'
  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/include_spec.rb
sbf-dm-core-1.3.0.beta spec/unit/data_mapper/ordered_set/include_spec.rb