aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test
diff options
context:
space:
mode:
authordixpac <dino.onex@gmail.com>2017-08-07 11:40:20 +0200
committerdixpac <dino.onex@gmail.com>2017-08-07 11:40:20 +0200
commitd44e737a761108c7b59183cb47fbd70a024bdfab (patch)
treef73c3dafde1a91189fa9c6934a0e791902694f14 /activestorage/test
parentdf94b863c2ff8f1bcf12e36ed8fc1419292668e7 (diff)
downloadrails-d44e737a761108c7b59183cb47fbd70a024bdfab.tar.gz
rails-d44e737a761108c7b59183cb47fbd70a024bdfab.tar.bz2
rails-d44e737a761108c7b59183cb47fbd70a024bdfab.zip
Filter out Minitest backtrace.
Filter out Minitest backtrace while allowing backtrace from other libraries to be shown.
Diffstat (limited to 'activestorage/test')
-rw-r--r--activestorage/test/test_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activestorage/test/test_helper.rb b/activestorage/test/test_helper.rb
index 5b6d3b64c2..50cc72cbe3 100644
--- a/activestorage/test/test_helper.rb
+++ b/activestorage/test/test_helper.rb
@@ -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)