Title test failing for request specs in Michael Hartls tutorial for Rails 3
问题 Im following the Ruby On Rails 3 tutorial by Michael Hartl and using Capybara for the integration specs. The integration specs so far are as follows require 'spec_helper' describe "StaticPages" do describe "Home page" do it "should have the h1 'Sample App'" do visit '/static_pages/home' page.should have_selector('h1',:text => 'Sample App') end it "should have the title 'Home'" do visit '/static_pages/home' page.should have_selector('title',:text => "Ruby on Rails Tutorial Sample App | Home")