Skip to content

Commit

Permalink
kill logging and warnings when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Sep 15, 2011
1 parent 693657a commit 914885f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
@@ -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
1 change: 1 addition & 0 deletions spec/sprinkle/configurable_spec.rb
Expand Up @@ -11,6 +11,7 @@ class Configurable
@configurable = MyPrefix::Configurable.new @configurable = MyPrefix::Configurable.new
@default = Proc.new { } @default = Proc.new { }
@defaults = { :configurable => @default } @defaults = { :configurable => @default }
@deployment = Object.new
@deployment.stub!(:defaults).and_return(@defaults) @deployment.stub!(:defaults).and_return(@defaults)
@deployment.stub!(:style) @deployment.stub!(:style)
end end
Expand Down

0 comments on commit 914885f

Please sign in to comment.