summaryrefslogtreecommitdiff
path: root/spec/bundler/support/silent_logger.rb
blob: 8665beb2c9f380d8047c186c6f753baadacc92c2 (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

require "logger"
module Spec
  class SilentLogger
    (::Logger.instance_methods - Object.instance_methods).each do |logger_instance_method|
      define_method(logger_instance_method) {|*args, &blk| }
    end
  end
end