Sha256: c0ddb296773a2787777c608e55e98f172cc36a71ea1abeb03e083f5aaa41f626
Contents?: true
Size: 587 Bytes
Versions: 3
Compression:
Stored size: 587 Bytes
Contents
$:.unshift(File.dirname(__FILE__) + '/../lib') require 'rubygems' require 'spec' require 'logger' require 'delayed_job' require 'sample_jobs' Delayed::Worker.logger = Logger.new('/tmp/dj.log') # determine the available backends BACKENDS = [] Dir.glob("#{File.dirname(__FILE__)}/setup/*.rb") do |backend| begin backend = File.basename(backend, '.rb') require "setup/#{backend}" require "backend/#{backend}_job_spec" BACKENDS << backend.to_sym rescue LoadError puts "Unable to load #{backend} backend! #{$!}" end end Delayed::Worker.backend = BACKENDS.first
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
delayed_job-2.0.2 | spec/spec_helper.rb |
delayed_job-2.0.1 | spec/spec_helper.rb |
delayed_job-2.0.0 | spec/spec_helper.rb |