Sha256: 646296a09ef9d5288f8c89c48df2815ba663f24e192654ed968ba2fe76818b29
Contents?: true
Size: 952 Bytes
Versions: 3
Compression:
Stored size: 952 Bytes
Contents
$LOAD_PATH.unshift(File.expand_path('../lib', File.dirname(__FILE__))) if ENV['SIMPLE_COV'] require 'simplecov' SimpleCov.start do add_filter 'pkg/' add_filter 'vendor/' end end require 'perfectqueue' if ENV["CI"] require 'coveralls' Coveralls.wear! end require 'fileutils' module QueueTest def self.included(mod) mod.module_eval do let :queue_config do { :type => 'rdb_compat', :url => "mysql2://root:@localhost/perfectqueue_test", :table => 'test_tasks', :processor_type => 'thread', :cleanup_interval => 0, # for test #:disable_resource_limit => true, # TODO backend-specific test cases } end let :queue do PerfectQueue.open(queue_config) end before do queue.client.init_database(:force => true) end after do queue.close end end end end include PerfectQueue
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
perfectqueue-0.9.2 | spec/spec_helper.rb |
perfectqueue-0.9.1 | spec/spec_helper.rb |
perfectqueue-0.9.0 | spec/spec_helper.rb |