test/test_helper.rb in groupdate-2.0.0 vs test/test_helper.rb in groupdate-2.0.1

- old
+ new

@@ -472,9 +472,15 @@ def test_previous_scopes create_user "2013-05-01 00:00:00 UTC" assert_empty User.where("id = 0").group_by_day(:created_at).count end + def test_time_zone + create_user "2013-05-01 00:00:00 UTC" + time_zone = "Pacific Time (US & Canada)" + assert_equal time_zone, User.group_by_day(:created_at, time_zone: time_zone).count.keys.first.time_zone.name + end + # helpers def assert_result_time(method, expected, time_str, time_zone = false, options = {}) assert_result method, Time.parse(expected), time_str, time_zone, options end