Files
redistat/spec/spec_helper.rb
Jim Myhrberg c3fe861b10 connection handling was so thread-safe that it
stopped working in newly created threads
2011-01-12 16:04:42 +00:00

13 lines
342 B
Ruby

# add project-relative load paths
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
# require stuff
require 'redistat'
require 'rspec'
require 'rspec/autorun'
# use the test Redistat instance
Redistat.connect(:port => 8379, :db => 15, :thread_safe => true)
Redistat.redis.flushdb