diff --git a/test/test_helper.rb b/test/test_helper.rb index b14e886..4b5388d 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -152,6 +152,14 @@ module TestDatabase assert_equal expected, User.group_by_day(:created_at).group_by_year(:created_at).count end + def test_groupdate_multiple_hour_of_day_day_of_week + create_user "2013-05-01 00:00:00 UTC", 1 + expected = { + [0, 3] => 1 + } + assert_equal expected, User.group_by_hour_of_day(:created_at).group_by_day_of_week(:created_at).count + end + def test_not_modified create_user "2013-05-01 00:00:00 UTC" expected = {utc.parse("2013-05-01 00:00:00 UTC") => 1} -- libgit2 0.21.0