title: Rspec/Rails3: NoMethodError: undefined method `text' for nil:NilClass
body: <p>I've got some tests failing. The following are my tests:</p>
  
  <pre><code>require 'spec_helper'
  
  describe "Authenticaton" do
  
    let(:base_title){"KS &gt; Kids | "}
  
    subject { page }
  
    describe "for non-signed-in users" do
  
      let(:user) { FactoryGirl.create(:user) }
      let(:subject) { FactoryGirl.create(:subject) }
  
      context "in the Subjects controller" do
  
        describe "visiting the edit page" do
          before { visit edit_subject_path(subject) }
          it { should have_title("#{base_title}Home") }
        end 
  
        describe "visiting the subject index" do
          before { visit subjects_path }
          it { should have_title("#{base_title}Home") } 
        end 
  
      end 
    end 
  end
  </code></pre>
  
  <p>And this is output</p>
  
  <p>1) Authenticaton for non-signed-in users in the Subjects controller visiting the subject index </p>
  
  <pre><code> Failure/Error: it { should have_title("#{base_title}#{I18n.t("messages.session.sign_in")}") }
   NoMethodError:
     undefined method `text' for nil:NilClass
   # ./spec/requests/extra_auth_pages_spec.rb:23:in `block (5 levels) in &lt;top (required)&gt;'
  </code></pre>
  
  <p>2) Authenticaton for non-signed-in users in the Subjects controller visiting the edit page </p>
  
  <pre><code> Failure/Error: it { should have_title("#{base_title}Home") }
   NoMethodError:
     undefined method `text' for nil:NilClass
   # ./spec/requests/extra_auth_pages_spec.rb:18:in `block (5 levels) in &lt;top (required)&gt;'
  </code></pre>
  
  <p>I'm missing something here?  Thanks for your help!</p>