title: Undefined local variable or method `params` Rspec
body: <p>I have the following controller RSpec test that should work however when I try to execute the below code:</p>
  
  <pre><code>require 'spec_helper'
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
  
  
  describe UsersController do
    include Devise::TestHelpers #Include devise test helpers
    render_views # Render devise views
  
    describe "GET 'show'"
  
    before(:each) do
      @user = User.find(params[:id])
      @attr = {:initials =&gt; 'EU', :name =&gt; 'Example', :full_name =&gt; 'Example User',
               :email =&gt; 'user@example.com', :password =&gt; 'password', :password_confirmation =&gt; 'password'
  
               #@attr = User.all
      }
    end
  
    it 'should be successful when showing OWN details' do
      get :show, :id =&gt; @attr
      response.should be_success
    end
  
    it 'should find the correct user' do
      get :show, :id =&gt; @attr
      assigns(@attr).should == @attr
    end
  end
  </code></pre>
  
  <p>However I am getting the following output: <code>Undefined locacl variable or method 'params' for RSPRC</code> I believe this set up should be correct. </p>