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 QC::Setup.create QC::Conn.disconnect end end