Skip to content
Browse files

Merge pull request #35 from yyyc514/quiet_test

kill logging and warnings when running tests
  • Loading branch information...
2 parents 693657a + 914885f commit 639c3dd43df903c1ea5191b0ed4ac7995a030952 @crafterm committed Sep 18, 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 639c3dd

Please sign in to comment.
Something went wrong with that request. Please try again.