Skip to content

Commit

Permalink
use new hash format
Browse files Browse the repository at this point in the history
  • Loading branch information
blahed committed Feb 1, 2013
1 parent 5b68a09 commit 976a072
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/counters/period_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@
Timecop.freeze(Time.local(2013, 02, 01, 9))
counter.increment

counter.count(:monthly).must_equal [{"2013-02" => 2}]
counter.count(:monthly).must_equal [{:timestamp => "2013-02", :count => 2}]
counter.count(:hourly).must_equal [
{ "2013-02-01 04:00" => 0 },
{ "2013-02-01 05:00" => 0 },
{ "2013-02-01 06:00" => 0 },
{ "2013-02-01 07:00" => 1 },
{ "2013-02-01 08:00" => 0 },
{ "2013-02-01 09:00" => 1 }
{ :timestamp => "2013-02-01 04:00", :count => 0 },
{ :timestamp => "2013-02-01 05:00", :count => 0 },
{ :timestamp => "2013-02-01 06:00", :count => 0 },
{ :timestamp => "2013-02-01 07:00", :count => 1 },
{ :timestamp => "2013-02-01 08:00", :count => 0 },
{ :timestamp => "2013-02-01 09:00", :count => 1 }
]
end

Expand Down

0 comments on commit 976a072

Please sign in to comment.