Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

kill logging and warnings when running tests

  • Loading branch information...
commit 914885ffdddb983034f55aaa88c82fc4e2a0c997 1 parent 693657a
@yyyc514 yyyc514 authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.