spec/spec_helper.rb in betterlog-0.14.1 vs spec/spec_helper.rb in betterlog-0.15.0
- old
+ new
@@ -7,7 +7,13 @@
require 'rspec'
begin
require 'byebug'
rescue LoadError
end
+require 'mock_redis'
+class MockRedis
+ class BaseConnectionError < StandardError; end
+ class CannotConnectError < BaseConnectionError; end
+end
+Redis=MockRedis
require 'betterlog'
Betterlog::Log.default_logger = Logger.new(nil)