Sha256: f2127c1eea833c679a1b5939c0c55ffd8f24aaacd78f76b05e67ec932c9f7c86

Contents?: true

Size: 406 Bytes

Versions: 3

Compression:

Stored size: 406 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Yardstick::OrderedSet, '#include?' do
  subject { set.include?(item) }

  let(:item) { double('item') }

  context 'when provided an included item' do
    let(:set) { described_class.new([item]) }

    it { should be(true) }
  end

  context 'when provided an excluded item' do
    let(:set) { described_class.new }

    it { should be(false) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yardstick-0.9.9 spec/unit/yardstick/ordered_set/include_predicate_spec.rb
yardstick-0.9.8 spec/unit/yardstick/ordered_set/include_predicate_spec.rb
yardstick-0.9.7 spec/unit/yardstick/ordered_set/include_predicate_spec.rb