1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Fix broken tests due to #631 changing global state

This commit is contained in:
Mike Perham 2013-01-26 08:07:13 -08:00
parent 638514c08a
commit 00af937b8f

View file

@ -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