Module: Ghaki::Logger::SpecHelper

Defined in:
lib/ghaki/logger/spec_helper.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#clear_safe_loggerObject



15
16
17
# File 'lib/ghaki/logger/spec_helper.rb', line 15

def clear_safe_logger
  @logger = nil
end

#make_safe_logger(opts = {}) ⇒ Object



7
8
9
# File 'lib/ghaki/logger/spec_helper.rb', line 7

def make_safe_logger opts={}
  Ghaki::Logger::Null.new( opts )
end

#reset_safe_logger(opts = {}) ⇒ Object



19
20
21
22
# File 'lib/ghaki/logger/spec_helper.rb', line 19

def reset_safe_logger opts={}
  clear_safe_logger
  setup_safe_logger opts
end

#setup_safe_logger(opts = {}) ⇒ Object



11
12
13
# File 'lib/ghaki/logger/spec_helper.rb', line 11

def setup_safe_logger opts={}
  @logger ||= make_safe_logger(opts)
end