lib/appstats/test_query.rb in appstats-0.16.2 vs lib/appstats/test_query.rb in appstats-0.16.3

- old
+ new

@@ -18,9 +18,24 @@ end end end + class BadTestQuery + + attr_accessor :query, :query_to_sql, :group_query_to_sql + + def process_query + query.query_to_sql = "this is not valid sql" + end + + def db_connection + dbconfig = YAML::load(File.open('db/config.yml')) + ActiveRecord::Base.establish_connection(dbconfig['development']).connection + end + + end + module Core class AnotherTestQuery attr_accessor :query def process_query; end def db_connection \ No newline at end of file