I have this test from michael hartl book:
require \'spec_helper\' describe \"Static pages\" do let(:base_title) { \"Ruby on Rails Tutorial Sample App\"
Make sure you're using capybara 1.1.2 in your Gemfile. Starting from 2.0 capybara does not works for title testing (https://github.com/jnicklas/capybara/issues/844)
... group :test do gem 'capybara', '1.1.2' end