discourse/spec/support/fake_logger.rb

17 lines
217 B
Ruby
Raw Normal View History

class FakeLogger
attr_reader :warnings, :errors
def initialize
@warnings = []
@errors = []
end
def warn(message)
@warnings << message
end
def error(message)
@errors << message
end
end