test/test_helper.rb in caddy-1.5.5 vs test/test_helper.rb in caddy-1.6.0
- old
+ new
@@ -5,5 +5,15 @@
CodeClimate::TestReporter.start
end
require "minitest/autorun"
require "caddy"
+
+ENV["RACK_ENV"] = ENV["RAILS_ENV"] = "test"
+
+$test_logger = begin
+ l = Logger.new(STDOUT)
+ l.level = Logger::ERROR
+ l
+end
+
+Caddy.logger = $test_logger