discourse/spec/support/fake_logger.rb

Failed to ignore revisions in .git-blame-ignore-revs.

32 lines
427 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class FakeLogger
attr_reader :warnings, :errors, :infos, :fatals
def initialize
@warnings = []
@errors = []
@infos = []
@fatals = []
end
def info(message = nil)
@infos << message
end
def warn(message)
@warnings << message
end
def error(message)
@errors << message
end
def fatal(message)
@fatals << message
end
def formatter
end
end