title: RSpec 2 use of assign for view specs
body: <p>I feel like I'm missing something pretty basic, but I can't seem to figure it out, either.</p>
  
  <p>When doing the following spec:</p>
  
  <pre><code>require 'spec_helper'
  
  describe "/mymodel/show.html.erb" do
    before(:each) do
      @mymodel = Factory(:mymodel)
      @user = Factory(:user)
      assign(:web_tip, @mymodel)
      assign(:current_user, @user)
    end
  
    it "renders attributes in &lt;p&gt;" do
      render
      rendered.should have_text(/somevalue/)
    end
  end
  </code></pre>
  
  <p>I get an error that the local variable current_user is undefined (the view's layout wants to call it to show the current login status).</p>
  
  <p>I'm on Rails 3, Rspec 2.6.4, and thought I was following the current docs correctly.</p>