Sha256: 2cc6b74b06610676f95af2b4cddf8772d16a39b44bfb0611871a785574bc76d3
Contents?: true
Size: 513 Bytes
Versions: 4
Compression:
Stored size: 513 Bytes
Contents
require 'rspec' require 'resque-dynamic-queues' spec_dir = File.dirname(File.expand_path(__FILE__)) REDIS_CMD = "redis-server #{spec_dir}/redis-test.conf" puts "Starting redis for testing at localhost:9736..." puts `cd #{spec_dir}; #{REDIS_CMD}` Resque.redis = 'localhost:9736' # Schedule the redis server for shutdown when tests are all finished. at_exit do pid = File.read("#{spec_dir}/redis.pid").to_i rescue nil system ("kill #{pid}") if pid != 0 end class SomeJob def self.perform(*args) end end
Version data entries
4 entries across 4 versions & 1 rubygems