test/groupdate_test.rb in groupdate-0.0.2 vs test/groupdate_test.rb in groupdate-0.0.3
- old
+ new
@@ -43,10 +43,10 @@
def test_time_zone
expected = {
"2013-03-31 07:00:00+00" => 2,
"2013-04-01 07:00:00+00" => 1
}
- assert_equal expected, User.group_by_day(:created_at, "America/Los_Angeles").count
+ assert_equal expected, User.group_by_day(:created_at, "Pacific Time (US & Canada)").count
end
def test_where
assert_equal({"2013-04-02 00:00:00+00" => 1}, User.where("score > 2").group_by_day(:created_at).count)
end