Define GlobalLog
once in your spec_helper.rb
.
class GlobalLog
class << self
[:info, :debug, :warn, :error].each do |method|
define_method(method) {|*|}
end
end
end
You could throw it in spec/support
if you want to be cleaner about it.