Sha256: 841531e1dd963c376d588c31b96241b8bbb7ea520e93bdece29e00b8a376be90
Contents?: true
Size: 712 Bytes
Versions: 4
Compression:
Stored size: 712 Bytes
Contents
dir = File.dirname(File.expand_path(__FILE__)) $LOAD_PATH.unshift dir + '/../lib' require 'test/unit' require 'rubygems' require 'resque' # # make sure we can run redis # if !system("which redis-server") puts '', "** can't find `redis-server` in your path" puts "** try running `sudo rake install`" abort '' end # # start our own redis when the tests start, # kill it when they end # at_exit do next if $! pid = `ps -A -o pid,command | grep [r]edis-test`.split(" ")[0] puts "Killing test redis server..." `rm -f #{dir}/dump.rdb` Process.kill("KILL", pid.to_i) end puts "Starting redis for testing at localhost:9736..." `redis-server #{dir}/redis-test.conf` Resque.redis = 'localhost:9736'
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
resque-result-1.0.1 | test/test_helper.rb |
resque-meta-1.0.1 | test/test_helper.rb |
resque-result-1.0.0 | test/test_helper.rb |
resque-meta-1.0.0 | test/test_helper.rb |