Sha256: 5b21622549b64dcc07b074a198138e8dd4d172b7f94a5d9b00f74b12b06e84d7

Contents?: true

Size: 321 Bytes

Versions: 11

Compression:

Stored size: 321 Bytes

Contents

require 'spec_helper'

describe Set do

    describe '#shift' do
        it 'removes and returns an item from the set' do
            set = described_class.new
            set << 1
            expect(set.size).to eq(1)
            expect(set.shift).to eq(1)
            expect(set.size).to eq(0)
        end
    end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
arachni-1.6.1.3 spec/arachni/ruby/set_spec.rb
arachni-1.6.1.2 spec/arachni/ruby/set_spec.rb
arachni-1.6.1.1 spec/arachni/ruby/set_spec.rb
arachni-1.6.1 spec/arachni/ruby/set_spec.rb
arachni-1.6.0 spec/arachni/ruby/set_spec.rb
arachni-1.5.1 spec/arachni/ruby/set_spec.rb
arachni-1.5 spec/arachni/ruby/set_spec.rb
arachni-1.4 spec/arachni/ruby/set_spec.rb
arachni-1.3.2 spec/arachni/ruby/set_spec.rb
arachni-1.3.1 spec/arachni/ruby/set_spec.rb
arachni-1.3 spec/arachni/ruby/set_spec.rb