title: Rspec have_selector error when expected output is correct
body: <p>I have 3 rspec selector fails when they all should be successes.  I'm following along with the rails-tutorial.org book and his shows as correct.</p>
  
  <pre><code>PagesController GET 'home' should have the right title
       Failure/Error: response.should have_selector("title", :content =&gt; "Ruby on Rails     Sample App | Home")
         expected following output to contain a &lt;title&gt;Ruby on Rails Sample App | Home&lt;/title&gt; tag:
     &lt;!DOCTYPE html&gt;
     &lt;html&gt;
     &lt;head&gt;
     &lt;meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"&gt;
     &lt;title&gt;Ruby on Rails Tutorial Sample App | Home&lt;/title&gt;
     &lt;/head&gt;
  </code></pre>
  
  <p>and the exact same errors with 'content' and 'about'</p>
  
  <p><strong>application.html.erb</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;%= title %&gt;&lt;/title&gt;
      &lt;%= csrf_meta_tag %&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;%= yield %&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>home.html.erb</strong></p>
  
  <pre><code>    &lt;h1&gt;Sample App&lt;/h1&gt;
      &lt;p&gt;
      This is the home page for the &lt;a href='http://railstutorial.org'&gt;Ruby on Rails Tutorial&lt;/a&gt; sample application
      &lt;/p&gt;
  </code></pre>
  
  <p><strong>application_helper.erb</strong></p>
  
  <pre><code>module ApplicationHelper
  
  #Return a title on a per-page basis
  def title
      base_title = "Ruby on Rails Tutorial Sample App"
      if @title.nil?
          base_title
      else
          "#{base_title} | #{@title}"
          end
      end
  end
  </code></pre>
  
  <p><strong>pages_controller_spec.rb</strong></p>
  
  <pre><code>require 'spec_helper'
  
  describe PagesController do
    render_views
  
    describe "GET 'home'" do
      it "should be successful" do
        get 'home'
        response.should be_success
      end
  
      it "should have the right title" do
        get 'home'
        response.should have_selector("title", :content =&gt; "Ruby on Rails Sample App |     Home")
      end
  
      it "should have a non-blank body" do
        get 'home'
        response.body.should_not =~ /&lt;body&gt;\s*&lt;\/body&gt;/
      end
    end
  </code></pre>