Permalink
Browse files

dont clobber Counter class

  • Loading branch information...
1 parent 976a072 commit c1609699bea98d4ac8dcf494b5400c79f94d2b26 @blahed committed Feb 1, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/counters/total_test.rb
@@ -1,7 +1,7 @@
require 'test_helper'
describe Von::Counters::Total do
- Counter = Von::Counters::Total
+ TotalCounter = Von::Counters::Total
before :each do
Timecop.freeze(Time.local(2013, 01, 01, 01, 01))
@@ -11,7 +11,7 @@
end
it "increments the total counter if given a single key" do
- counter = Counter.new('foo')
+ counter = TotalCounter.new('foo')
counter.increment
@redis.hget('von:counters:foo', 'total').must_equal '1'
@@ -21,7 +21,7 @@
end
it "gets a total count for a counter" do
- counter = Counter.new('foo')
+ counter = TotalCounter.new('foo')
counter.increment
counter.increment
counter.increment

0 comments on commit c160969

Please sign in to comment.