title: How to mock Logger in Rails test using Test::Unit?
body: <p>In test_helper:</p>
  
  <pre><code>class Logger
      @@log = []
  
    def self.info(message)
      @@log.push(message)
    end
  
    def self.log
      @@log
    end
  end
  </code></pre>
  
  <p>But when running the tests it seems to use the regular Logger. </p>
  
  <p>How to create a mock for the Logger?</p>
  
  <p>Rails 3.0.7.</p>