title: Getting blank page when running RSpec tests for get 'new'
body: <p>I am getting an empty page as response when running the following RSpec test:</p>
  
  <pre><code>require 'spec_helper'
  
  describe FriendshipsController do
    include Devise::TestHelpers
    render_views
  
    before(:each) do
      @user = User.create!(:email =&gt; "max@mustermann.com", :password =&gt; "mustermann", :password_confirmation =&gt; "mustermann")
      @friend = User.create!(:email =&gt; "john@doe.com", :password =&gt; "password", :password_confirmation =&gt; "password")    
      sign_in @user
    end  
  
    describe "GET 'new'" do
  
      it "should be successful" do
        get 'new', :user_id =&gt; @user.id
        response.should be_success
      end
  
      it "should show all registered users on Friendslend, except the logged in user" do
        get 'new', :user_id =&gt; @user.id
  
        page.should have_select("Add new friend")
        page.should have_content("div.users")
        page.should have_selector("div.users li", :count =&gt; 1)
      end
  
      it "should not contain the logged in user" do
        get 'new', :user_id =&gt; @user.id
        response.should_not have_content(@user.email)
      end
    end
  end
  </code></pre>
  
  <p>I only get a blank page when running the RSpec test. 
  With blank page I mean there is no other HTML content other than the DOCTYPE declaration.</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"&gt;
  </code></pre>
  
  <p>Interestingly, RSpec tests for post 'create' work fine. Any hints?</p>
  
  <p>I am using Rails 3.2 with spec-rails, cucumber and capybara (instead of webrat).</p>