Sha256: e50bd6b01240ad807e017bf1ac988aa03fd1e22088376d1ec09d2c7e25ccfd8b
Contents?: true
Size: 584 Bytes
Versions: 4
Compression:
Stored size: 584 Bytes
Contents
require "spec_helper" describe Rico::Set do before :each do RiakHelpers.reset! end describe "#add" do it "dedupes and retains order in instance" do a = Rico::Set.new RiakHelpers.bucket, "set_add_1" a.add(3, 4, 6, 8, 1, 2, 3, 4, 7) a.members.should eql [3, 4, 6, 8, 1, 2, 7] end it "dedupes and sort is retained on read" do a = Rico::Set.new RiakHelpers.bucket, "set_add_2" a.add(3, 4, 6, 8, 1, 2, 3, 4, 7) b = Rico::Set.new RiakHelpers.bucket, "set_add_2" b.members.should eql [3, 4, 6, 8, 1, 2, 7] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rico-0.3.0 | spec/set_spec.rb |
rico-0.2.0 | spec/set_spec.rb |
rico-0.1.0 | spec/set_spec.rb |
rico-0.0.1 | spec/set_spec.rb |