title: Rails feature testing with logged in user (undefined method 'session')
body: <p>I'm writing feature specs with rspec and want to skip the login step each time.  Users are authenticated through omniauth (no devise) and a <code>session[:user]</code> variable is set and then referenced to stay logged in.  I want to be able to set the session variable directly if possible:</p>
  
  <pre><code>require 'spec_helper'
  
  describe "My page" do
    it "has what I want on it when logged in" do
      user = FactoryGirl.create(:user)
      session[:user] = user.id
      visit my_path
      page.should have_content "Foobar"
    end
  end
  </code></pre>
  
  <p>but this gives</p>
  
  <pre><code> Failure/Error: session[:user] = user.id
   NameError:
     undefined local variable or method `session' for #&lt;RSpec::Core::ExampleGroup::Nested_1:0x007fd13456d170&gt;
  </code></pre>
  
  <p>Is there any way to set the session variable directly so that I can avoid the login step in most of the tests?</p>