Sha256: c3c5a0e28d1710b70a557f6da1b397e48fd62a808e027f5862d7a002c4acdd5d

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
resque-dynamic-queues-0.5.1 spec/spec_helper.rb
resque-dynamic-queues-0.5.0 spec/spec_helper.rb