Sha256: c8d887b4d0539b76f56c7e5bbec3ac5ffded82d7af45884f1882f33e47226f6d
Contents?: true
Size: 593 Bytes
Versions: 2
Compression:
Stored size: 593 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.establish_connection adapter: 'mysql2', database: 'workhorse', username: 'travis', password: '', pool: 10, host: :localhost require 'db_schema' require 'workhorse'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workhorse-0.1.0 | test/lib/test_helper.rb |
workhorse-0.0.3 | test/lib/test_helper.rb |