Sha256: e892f0d376b5050213aec413bc564c07c92b6904bb636d17b3a76d862b0bd672
Contents?: true
Size: 519 Bytes
Versions: 2
Compression:
Stored size: 519 Bytes
Contents
require "spec_helper" require "hamster/list" describe Hamster::List do let(:list) { Hamster.list(*values) } describe "#pop" do let(:pop) { list.pop } context "with an empty list" do let(:values) { [] } it "returns an empty list" do expect(pop).to eq(Hamster.list) end end context "with a list with a few items" do let(:values) { %w[a b c] } it "should remove the last item" do expect(pop).to eq(Hamster.list("a", "b")) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hamster-1.0.1.pre.rc2 | spec/hamster/list/pop_spec.rb |
hamster-1.0.1.pre.rc.1 | spec/hamster/list/pop_spec.rb |