spec/logger_helper.rb in slf4r-0.3.3 vs spec/logger_helper.rb in slf4r-0.4.0
- old
+ new
@@ -1,8 +1,10 @@
require 'pathname'
require Pathname(__FILE__).dirname.expand_path + 'spec_helper'
-def Slf4r.flush(klass)
- remove_const(klass.to_sym) if const_defined? klass.to_sym
+module Slf4r
+ def flush(klass)
+ remove_const(klass.to_sym) if const_defined? klass.to_sym
+ end
end
def behave_as_logger(logger)
filename = logger.name
describe logger.name do