Sha256: 3eb5fb78f9a0e9ffd4e6345beae2415518ecbbd0abc4c5f45965d59bbe8d01b2

Contents?: true

Size: 513 Bytes

Versions: 5

Compression:

Stored size: 513 Bytes

Contents

require 'rspec'
require 'resque-queue-priority'

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

5 entries across 5 versions & 1 rubygems

Version Path
resque-queue-priority-0.6.0 spec/spec_helper.rb
resque-queue-priority-0.5.3 spec/spec_helper.rb
resque-queue-priority-0.5.2 spec/spec_helper.rb
resque-queue-priority-0.5.1 spec/spec_helper.rb
resque-queue-priority-0.5.0 spec/spec_helper.rb