title: How to get RSpec to test controllers in subdirectories?
body: <p>I have some controllers that are in subdomains of the controllers folder. </p>
  
  <p>for example, i have a controller in <code>app/controllers/api/v1/offers_controller.rb</code> that looks like this:</p>
  
  <pre><code>class Api::V1::OffersController &lt; ApplicationController
    respond_to :json
  
    def index
     ...some code here
    end
  end
  </code></pre>
  
  <p>I tried putting a controller in <code>spec/controllers/api/v1/offers_controller.rb</code> that looks like this:</p>
  
  <p>require 'spec_helper'</p>
  
  <pre><code>descripe Api::V1::OffersController do
    describe "GET 'index'" do
      it "returns http success" do
        get 'index'
        response.should be_success
      end
    end
  end
  </code></pre>
  
  <p>however, when I run <code>rspec spec</code>, this test does not get run at all. I also tried putting it  in the <code>spec/controllers</code> directory, named api_v1_offers_controller.rb, and the test is still not run. </p>
  
  <p>How can I write RSpec tests for these types of controllers?</p>