title: Rspec not loading support files
body: <p>I have this file:</p>
  
  <pre><code># support/auth_macros.rb
  module AuthMacros
    def login_user
      before(:each) do
        @request.env["devise.mapping"] = Devise.mappings[:user]
        @logged_in_user = FactoryGirl.create(:user, username: "logged_in")
        sign_in @logged_in_user
      end
    end
  
    def logout_user
      before(:each) do
        sign_out @logged_in_user
      end
    end
  end
  </code></pre>
  
  <p>In my <code>spec_helper</code> file, I have this line:</p>
  
  <pre><code>Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
  </code></pre>
  
  <p>Yet when I run rspec, I get errors like:</p>
  
  <pre><code>undefined local variable or method `login_user' for RSpec::ExampleGroups::PostsController::POSTCreate::WhenSignedIn:Class
  </code></pre>
  
  <p>The relevant function is located in <code>support/auth_macros</code>, which I assume would be picked up by the <code>require</code> statement in my <code>spec_helper</code>.</p>
  
  <p>Any idea what might be going on?</p>