title: RSpec accessing application_controller methods such as 'current_user'
body: <p>I'm trying to stub out a method on my current_user (using a modified restful_authentication auth solution) with rspec.  I'm completely unsure of how I can access this method in my controller specs.  current_user by itself doesn't work.  Do I need to get the controller itself first?  How do I do this?</p>
  
  <p>Using <code>rails 2.3.5</code>, <code>rspec 1.3.0</code> and <code>rspec-rails 1.3.2</code></p>
  
  <pre><code># my_controller_spec.rb
  require 'spec_helper'
  
  describe MyController do
  
    let(:foos){ # some array of foos }
  
    it "fetches foos of current user" do
      current_user.should_receive(:foos).and_return(foos)
      get :show
    end
  end
  </code></pre>
  
  <p>Produces</p>
  
  <pre><code>NoMethodError in 'ChallengesController fetches foos of current user'
  undefined method `current_user' for #&lt;Spec::Rails::Example::ControllerExampleGroup::Subclass_1::Subclass_1::Subclass_2::Subclass_2:0x7194b2f4&gt;
  </code></pre>