test/test_helper.rb in circuitbox-0.7.0 vs test/test_helper.rb in circuitbox-0.8.0

- old
+ new

@@ -1,6 +1,15 @@ -require 'minitest' require 'minitest/autorun' -require 'minitest/pride' require 'mocha/mini_test' require 'timecop' require 'gimme' +require 'circuitbox' + +DEV_NULL = (RUBY_PLATFORM =~ /mswin|mingw/ ? "NUL" : "/dev/null") + +class Circuitbox + class CircuitBreaker + def logger + @_dev_null_logger ||= Logger.new(DEV_NULL) + end + end +end