Sha256: b0efcdc8cc7642350730fa285615caf542eb3341c7765af26fd526fbc6dc8795
Contents?: true
Size: 627 Bytes
Versions: 3
Compression:
Stored size: 627 Bytes
Contents
require "spec_helper" describe Rico::SortedMap do before :each do RiakHelpers.reset! end describe "#add" do it "sorts in instance" do a = Rico::SortedMap.new RiakHelpers.bucket, "sorted_map_add_1" a.add({"x" => 1, "4" => 2, "a" => 3}) a.members.should eql({"4" => 2, "a" => 3, "x" => 1}) end it "sort is retained on read" do a = Rico::SortedMap.new RiakHelpers.bucket, "sorted_map_add_2" a.add({"x" => 1, "4" => 2, "a" => 3}) b = Rico::SortedMap.new RiakHelpers.bucket, "sorted_map_add_2" b.members.should eql({"4" => 2, "a" => 3, "x" => 1}) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rico-0.5.0 | spec/sorted_map_spec.rb |
rico-0.4.0 | spec/sorted_map_spec.rb |
rico-0.3.0 | spec/sorted_map_spec.rb |