mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 05:16:39 +00:00
19 lines
430 B
Ruby
19 lines
430 B
Ruby
# add project-relative load paths
|
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
|
|
require 'simplecov'
|
|
SimpleCov.start do
|
|
add_filter '/spec'
|
|
add_filter '/vendor'
|
|
end
|
|
|
|
# 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
|