title: "uninitialized constant" when included test helper module
body: <p>I am getting an uninitialized constant error when trying to include a helper module into a test.</p>
  
  <p>I have the following files in my rails test directory </p>
  
  <pre><code>functional&gt; admin&gt; school_controller_test.rb
  functional&gt; controller_helper.rb
  </code></pre>
  
  <p>The class/modules bodies are as follows:</p>
  
  <pre><code>module ControllerHelper
    def check_sort_order (items, column, direction)
      ...
    end
  end
  
  class Admin::SchoolsControllerTest &lt; ActionController::TestCase
    include ::ControllerHelper 
  
    test "should sort by columns" do
      check_sort_order(assigns(:schools), 'schools.name', 'asc')
      check_sort_order(assigns(:schools), 'schools.name', 'desc')
    end
  end
  </code></pre>
  
  <p>When I run this, the test output is:</p>
  
  <p>/.../.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.3.0/lib/rspec/core/backward_compatibility.rb:20:in `const_missing': uninitialized constant ControllerHelper (NameError)</p>
  
  <p>I've tried playing with the namespaces, but can't get the module mixed in at all!  Any ideas why I'm getting this error?  Or is this even the correct way to extract common test functions?   I'm very new to Rails, so any advice would be appreciated :)</p>
  
  <p>Cheers!</p>