lib/appstats/test_query.rb in appstats-0.16.1 vs lib/appstats/test_query.rb in appstats-0.16.2
- old
+ new
@@ -29,10 +29,27 @@
end
end
end
+ class InvalidTestQuery
+
+ attr_accessor :query
+
+ def process_query
+ query.query_to_sql = "select * from appstats_test_objects"
+ query.group_query_to_sql = "select * from appstats_test_objects"
+ end
+
+
+ def db_connection
+ ActiveRecord::Base.connection
+ end
+
+ end
+
end
+
class YetAnotherTestQuery
attr_accessor :query
def process_query; end
def db_connection
\ No newline at end of file