Skip to content

Commit

Permalink
dont clobber Counter class
Browse files Browse the repository at this point in the history
  • Loading branch information
blahed committed Feb 1, 2013
1 parent 976a072 commit c160969
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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))
Expand All @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit c160969

Please sign in to comment.