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

- old
+ new

@@ -99,11 +99,11 @@ describe ".drop!" do before do 3.times { metric.record(rand(30)) } - @count_keys = (Tabs::RESOLUTIONS.map do |res| + @count_keys = (Tabs::Resolution.all.map do |res| smembers("stat:value:foo:keys:#{res}") end).flatten metric.drop! end @@ -112,10 +112,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:value:foo:keys:#{res}")).to be_false end end end