Filter out Minitest backtrace.

Filter out Minitest backtrace while allowing backtrace from other
libraries to be shown.
This commit is contained in:
dixpac 2017-08-07 11:40:20 +02:00
parent df94b863c2
commit d44e737a76
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@ ActiveJob::Base.logger = nil
require "active_storage"
# Filter out Minitest backtrace while allowing backtrace from other libraries
# to be shown.
Minitest.backtrace_filter = Minitest::BacktraceFilter.new
require "yaml"
SERVICE_CONFIGURATIONS = begin
erb = ERB.new(Pathname.new(File.expand_path("../service/configurations.yml", __FILE__)).read)