Sha256: cf4034d93e831df1c7bfe348dcdfb4a5750c75d3526138238079bb0c6f02db05

Contents?: true

Size: 393 Bytes

Versions: 5

Compression:

Stored size: 393 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
heroku-qc-autoscale-0.0.7 test/support/qc_helper.rb
heroku-qc-autoscale-0.0.6 test/support/qc_helper.rb
heroku-qc-autoscale-0.0.5 test/support/qc_helper.rb
heroku-qc-autoscale-0.0.4 test/support/qc_helper.rb
heroku-qc-autoscale-0.0.3 test/support/qc_helper.rb