spec/lib/tabs/metrics/counter_spec.rb in tabs-0.8.2 vs spec/lib/tabs/metrics/counter_spec.rb in tabs-0.9.0

- old
+ new

@@ -124,11 +124,11 @@ describe ".drop!" do before do 3.times { metric.increment } expect(exists("stat:counter:foo:total")).to be_true - @count_keys = (Tabs::RESOLUTIONS.map do |res| + @count_keys = (Tabs::Resolution.all.map do |res| smembers("stat:counter:foo:keys:#{res}") end).flatten metric.drop! end @@ -141,10 +141,10 @@ expect(exists(key)).to be_false end end it "deletes all resolution key collection keys" do - Tabs::RESOLUTIONS.each do |res| + Tabs::Resolution.all.each do |res| expect(exists("stat:counter:foo:keys:#{res}")).to be_false end end end