aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2018-09-17 17:48:32 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2018-09-17 17:48:32 -0700
commit03b18410071f4e8a9a2daff13e02881e5f1a1c12 (patch)
treeef5e34c57c10418487f72d72085b2599125f04cb /test/test_helper.rb
parent12deb313e02680bbd1c07ada79a890d6734d1bf3 (diff)
downloadrails-03b18410071f4e8a9a2daff13e02881e5f1a1c12.tar.gz
rails-03b18410071f4e8a9a2daff13e02881e5f1a1c12.tar.bz2
rails-03b18410071f4e8a9a2daff13e02881e5f1a1c12.zip
Add dummy app for testing
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 81d14de111..79fde51549 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -5,6 +5,10 @@ require_relative "../test/dummy/config/environment"
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../test/dummy/db/migrate", __dir__)]
require "rails/test_help"
+# Filter out Minitest backtrace while allowing backtrace from other libraries
+# to be shown.
+Minitest.backtrace_filter = Minitest::BacktraceFilter.new
+
require "rails/test_unit/reporter"
Rails::TestUnitReporter.executable = 'bin/test'
@@ -19,7 +23,6 @@ end
class ActiveSupport::TestCase
private
def create_file_blob(filename:, content_type:, metadata: nil)
- ActiveStorage::Blob.create_after_upload! io: file_fixture(filename).open,
- filename: filename, content_type: content_type, metadata: metadata
+ ActiveStorage::Blob.create_after_upload! io: file_fixture(filename).open, filename: filename, content_type: content_type, metadata: metadata
end
end