Sha256: b3c1ce20cf9b03b9cfa60d705424b3e980119906a4a4da1d1d2a113df5d2a1c3
Contents?: true
Size: 971 Bytes
Versions: 2
Compression:
Stored size: 971 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' require 'tempfile' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
perfectqueue-0.10.1 | spec/spec_helper.rb |
perfectqueue-0.10.0 | spec/spec_helper.rb |