title: Where to write test case for this file in initializers in rails?
body: <p>I created a common.rb file in intializer folder in rails 2.x app. The code is below</p>
  
  <pre><code>def handle_exception &amp;block
    begin
      yield block
    rescue Exception =&gt; ex
      logger.error(ex)
      HoptoadNotifier.notify(ex)
    end
  end
  </code></pre>
  
  <p>For the above I want to write test case. I guess it should be in functional test. If this is the case. I don't know how should I name it, means I'm confused with (controller name &lt;&lt; Base). Do rails run this test case as like other controller test ? Or do we need to add it any where? Since the above code doesn't have class which is inherited from controller, etc.. I will add more info, if you are not clear with my question.</p>