test/test_helper.rb in groupdate-2.0.2 vs test/test_helper.rb in groupdate-2.0.3

- old
+ new

@@ -489,9 +489,17 @@ def test_bad_method assert_raises(NoMethodError) { User.group_by_day(:created_at).no_such_method } end + def test_respond_to_where + assert User.group_by_day(:created_at).respond_to?(:order) + end + + def test_respond_to_bad_method + assert !User.group_by_day(:created_at).respond_to?(:no_such_method) + 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