Sha256: 8ed7d19d92a9ae8fb01971a013b3114e63c128319b9d2ee9fe296fdf0fb74d74
Contents?: true
Size: 575 Bytes
Versions: 2
Compression:
Stored size: 575 Bytes
Contents
require "spec_helper" describe Rico::SortedSet do before :each do RiakHelpers.reset! end describe "#add" do it "dedupes and sorts in instance" do a = Rico::SortedSet.new RiakHelpers.bucket, "sorted_set_add_1" a.add [3, 2, 2, 1, 1] a.members.should eql [1, 2, 3] end it "dedupes and sort is retained on read" do a = Rico::SortedSet.new RiakHelpers.bucket, "sorted_set_add_2" a.add [3, 3, 2, 2, 1] b = Rico::SortedSet.new RiakHelpers.bucket, "sorted_set_add_2" b.members.should eql [1, 2, 3] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rico-0.5.0 | spec/sorted_set_spec.rb |
rico-0.4.0 | spec/sorted_set_spec.rb |