mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 13:26:39 +00:00
most components use new Options helper module
This commit is contained in:
@@ -69,7 +69,7 @@ describe Redistat::Summary do
|
||||
|
||||
it "should not store key group summaries when option is disabled" do
|
||||
stats = {"views" => 3, "visitors/eu" => 2, "visitors/us" => 4}
|
||||
Redistat::Summary.update_all(@key, stats, :hour, nil, false)
|
||||
Redistat::Summary.update_all(@key, stats, :hour, {:enable_grouping => false})
|
||||
summary = db.hgetall(@key.to_s(:hour))
|
||||
summary.should have(3).items
|
||||
summary["views"].should == "3"
|
||||
|
||||
Reference in New Issue
Block a user