title: Inheriting BaseController causes uninitialize
body: <p>In my application I have the following files:</p>
  
  <p>app/controllers/api/articles_controller.rb</p>
  
  <pre><code>class Api::ArticlesController &lt; Api::BaseController
  end
  </code></pre>
  
  <p>app/controllers/api/base_controller.rb</p>
  
  <pre><code>class API::BaseController &lt; ApplicationController
    # some codes here
  end
  </code></pre>
  
  <p>in my rspec, I have this:</p>
  
  <pre><code>require 'rails_helper'
  
  describe Api::ArticlesController do
    it "should do something here"
  end
  </code></pre>
  
  <p>But when I run <code>rspec spec</code>, I got <code>uninitialized constant Api::BaseController (NameError)</code>. Why? I have <code>base_controller</code> under <code>app/controllers/api</code>. What do I am doing wrong?</p>