Sha256: 48d8be68a89c1ad748d7d0f60588dc1fdeaa331a0518e1c72fc6fef62ff57b3e
Contents?: true
Size: 573 Bytes
Versions: 4
Compression:
Stored size: 573 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rico-0.3.0 | spec/sorted_set_spec.rb |
rico-0.2.0 | spec/sorted_set_spec.rb |
rico-0.1.0 | spec/sorted_set_spec.rb |
rico-0.0.1 | spec/sorted_set_spec.rb |