lib/kredis/railtie.rb in kredis-0.2.1 vs lib/kredis/railtie.rb in kredis-0.2.2
- old
+ new
@@ -4,11 +4,11 @@
class Railtie < ::Rails::Railtie
config.kredis = ActiveSupport::OrderedOptions.new
initializer "kredis.testing" do
ActiveSupport.on_load(:active_support_test_case) do
- parallelize_setup { |worker| Kredis.namespace = "test-#{worker}" }
- parallelize_teardown { Kredis.clear_all }
+ parallelize_setup { |worker| Kredis.namespace = "test-#{worker}" }
+ teardown { Kredis.clear_all }
end
end
initializer "kredis.logger" do
Kredis.logger = config.kredis.logger || Rails.logger