From 00af937b8f79640e366f8834f4f01bcfc6f9785a Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Sat, 26 Jan 2013 08:07:13 -0800 Subject: [PATCH] Fix broken tests due to #631 changing global state --- test/test_redis_connection.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/test_redis_connection.rb b/test/test_redis_connection.rb index 1823da87..1d64a0c4 100644 --- a/test/test_redis_connection.rb +++ b/test/test_redis_connection.rb @@ -18,19 +18,18 @@ class TestRedisConnection < MiniTest::Unit::TestCase end it "uses :namespace from Sidekiq.options" do - Sidekiq.options = {:namespace => "xxx"} + Sidekiq.options[:namespace] = "xxx" pool = Sidekiq::RedisConnection.create assert_equal "xxx", pool.checkout.namespace end it "uses given :namespace over :namespace from Sidekiq.options" do - Sidekiq.options = {:namespace => "xxx"} + Sidekiq.options[:namespace] = "xxx" pool = Sidekiq::RedisConnection.create(:namespace => "yyy") assert_equal "yyy", pool.checkout.namespace end end - end describe ".determine_redis_provider" do