Sha256: c4c939abf553d794e0ddd86c6ed1d392290e161fc76b4daf5c10d4102f95a1ae
Contents?: true
Size: 645 Bytes
Versions: 1
Compression:
Stored size: 645 Bytes
Contents
require 'minitest/autorun' require 'active_record' require 'mysql2' require 'benchmark' require 'jobs' class WorkhorseTest < ActiveSupport::TestCase def setup Workhorse::DbJob.delete_all end protected def work(time = 2, options = {}) options[:pool_size] ||= 5 options[:polling_interval] ||= 1 w = Workhorse::Worker.new(options) w.start sleep time w.shutdown end end ActiveRecord::Base.logger = Logger.new('debug.log') ActiveRecord::Base.establish_connection adapter: 'mysql2', database: 'workhorse', username: 'travis', password: '', pool: 10, host: :localhost require 'db_schema' require 'workhorse'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workhorse-0.0.2 | test/lib/test_helper.rb |