Browse files

kill logging and warnings when running tests

  • Loading branch information...
1 parent 693657a commit 914885ffdddb983034f55aaa88c82fc4e2a0c997 @yyyc514 yyyc514 committed Sep 15, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −2 spec/spec_helper.rb
  2. +1 −0 spec/sprinkle/configurable_spec.rb
View
4 spec/spec_helper.rb
@@ -1,9 +1,9 @@
$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'sprinkle'
-module Kernel
+class Object
def logger
@@__log_file__ ||= StringIO.new
- @@__log__ = ActiveSupport::BufferedLogger.new @@__log_file__
+ @@__log__ = ActiveSupport::BufferedLogger.new @@__log_file__, ActiveSupport::BufferedLogger::Severity::INFO
end
end
View
1 spec/sprinkle/configurable_spec.rb
@@ -11,6 +11,7 @@ class Configurable
@configurable = MyPrefix::Configurable.new
@default = Proc.new { }
@defaults = { :configurable => @default }
+ @deployment = Object.new
@deployment.stub!(:defaults).and_return(@defaults)
@deployment.stub!(:style)
end

0 comments on commit 914885f

Please sign in to comment.