Sha256: 433be33533fb12be1416c8fa0d1b3af1de85f320909f0d8ddad7903658bfab43

Contents?: true

Size: 356 Bytes

Versions: 3

Compression:

Stored size: 356 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Yardstick::OrderedSet, '#empty?' do
  subject { set.empty? }

  context 'when there are no items' do
    let(:set) { described_class.new }

    it { should be(true) }
  end

  context 'when there are items' do
    let(:set) { described_class.new([double('item')]) }

    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/empty_predicate_spec.rb
yardstick-0.9.8 spec/unit/yardstick/ordered_set/empty_predicate_spec.rb
yardstick-0.9.7 spec/unit/yardstick/ordered_set/empty_predicate_spec.rb