test/test_helper.rb in gaptool-server-0.6.0.beta1 vs test/test_helper.rb in gaptool-server-0.6.0
- old
+ new
@@ -9,10 +9,11 @@
libpath = File.realpath(File.join(File.dirname(__FILE__), "..", "lib"))
require 'rspec'
require 'rack/test'
require 'fakeredis/rspec'
+require 'redis-namespace'
require "#{libpath}/app.rb"
RSpec.configure do |conf|
conf.include Rack::Test::Methods
def app
@@ -20,6 +21,7 @@
end
end
DH = Gaptool::Data
-$redis = Redis.new
+conn = Redis.new
+$redis = Redis::Namespace.new(:gt, redis:conn)