mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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 ```
This commit is contained in:
parent
00a47d58ec
commit
07a13f7abb
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue