most components use new Options helper module

This commit is contained in:
2011-03-10 00:27:13 +00:00
parent 3a00353f83
commit d39d5d8dde
8 changed files with 66 additions and 96 deletions

View File

@@ -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"