mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 13:26:39 +00:00
21 lines
527 B
Ruby
21 lines
527 B
Ruby
require "spec_helper"
|
|
|
|
describe Redistat::Collection do
|
|
|
|
it "should initialize properly" do
|
|
options = {:from => "from", :till => "till", :depth => "depth"}
|
|
result = Redistat::Collection.new(options)
|
|
result.from.should == options[:from]
|
|
result.till.should == options[:till]
|
|
result.depth.should == options[:depth]
|
|
end
|
|
|
|
it "should have a total property" do
|
|
col = Redistat::Collection.new()
|
|
col.total.should == {}
|
|
col.total = {:foo => "bar"}
|
|
col.total.should == {:foo => "bar"}
|
|
end
|
|
|
|
end
|