forked from sprinkle-tool/sprinkle
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kill logging and warnings when running tests
- Loading branch information
1 parent
693657a
commit 914885f
Showing
2 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,9 +1,9 @@ | |||
$:.unshift(File.dirname(__FILE__) + '/../lib') | $:.unshift(File.dirname(__FILE__) + '/../lib') | ||
require 'sprinkle' | require 'sprinkle' | ||
|
|
||
module Kernel | class Object | ||
def logger | def logger | ||
@@__log_file__ ||= StringIO.new | @@__log_file__ ||= StringIO.new | ||
@@__log__ = ActiveSupport::BufferedLogger.new @@__log_file__ | @@__log__ = ActiveSupport::BufferedLogger.new @@__log_file__, ActiveSupport::BufferedLogger::Severity::INFO | ||
end | end | ||
end | end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters