Sha256: efc70832104e184856f86d9a4e96afeb8c00beb21168dc11a53e69388238f2e1
Contents?: true
Size: 526 Bytes
Versions: 1
Compression:
Stored size: 526 Bytes
Contents
require "spec_helper" describe Redisrank::Collection do it "should initialize properly" do options = {:from => "from", :till => "till", :depth => "depth"} result = Redisrank::Collection.new(options) result.from.should == options[:from] result.till.should == options[:till] result.depth.should == options[:depth] end it "should have a rank property" do col = Redisrank::Collection.new() col.rank.should == {} col.rank = {:foo => "bar"} col.rank.should == {:foo => "bar"} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redisrank-0.1.0 | spec/collection_spec.rb |