aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/test_helper.rb
diff options
context:
space:
mode:
authorJon Moss <me@jonathanmoss.me>2017-08-17 09:47:23 -0400
committerJon Moss <me@jonathanmoss.me>2017-08-17 09:47:23 -0400
commit07a13f7abb15fb746bf75f00c99c91394888be06 (patch)
treeb4fbb2492dbeb97028bfec4f46f1fb9dac207613 /activestorage/test/test_helper.rb
parent00a47d58ecb4587510ff3d721a692561abbe3ba2 (diff)
downloadrails-07a13f7abb15fb746bf75f00c99c91394888be06.tar.gz
rails-07a13f7abb15fb746bf75f00c99c91394888be06.tar.bz2
rails-07a13f7abb15fb746bf75f00c99c91394888be06.zip
Use nil Logger for tests
Makes tests much more quietly, as opposed to the enormous amount of logging that appears right now. This setting is used in AJ, as well as other frameworks. Output from test run: ``` ......................................................... Finished in 3.003355s, 18.9788 runs/s, 45.2827 assertions/s. 57 runs, 136 assertions, 0 failures, 0 errors, 0 skips ```
Diffstat (limited to 'activestorage/test/test_helper.rb')
-rw-r--r--activestorage/test/test_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/test/test_helper.rb b/activestorage/test/test_helper.rb
index 0bb3a925b8..2a969fa326 100644
--- a/activestorage/test/test_helper.rb
+++ b/activestorage/test/test_helper.rb
@@ -32,7 +32,7 @@ end
require "tmpdir"
ActiveStorage::Blob.service = ActiveStorage::Service::DiskService.new(root: Dir.mktmpdir("active_storage_tests"))
-ActiveStorage::Service.logger = ActiveSupport::Logger.new(STDOUT)
+ActiveStorage::Service.logger = ActiveSupport::Logger.new(nil)
ActiveStorage.verifier = ActiveSupport::MessageVerifier.new("Testing")