Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use new hash format

  • Loading branch information...
commit 976a0723c57b74e97d1550f9e825a8a74b2e9f2c 1 parent 5b68a09
@blahed authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 test/counters/period_test.rb
View
14 test/counters/period_test.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.