test/support/qc_helper.rb in heroku-qc-autoscale-0.0.2 vs test/support/qc_helper.rb in heroku-qc-autoscale-0.0.3
- old
+ new
@@ -1,12 +1,17 @@
module QCHelper
def setup
init_db
+ silence_logger
end
def teardown
QC.delete_all
+ end
+
+ def silence_logger
+ QC.define_singleton_method :log do |*args| nil; end # silence QC logger
end
def init_db(table_name="queue_classic_jobs")
QC::Conn.execute("SET client_min_messages TO 'warning'")
QC::Setup.drop
\ No newline at end of file