I have this test from michael hartl book:
require \'spec_helper\' describe \"Static pages\" do let(:base_title) { \"Ruby on Rails Tutorial Sample App\"
Using capubara 2.0 you should use
page.should have_title("The title")
But in aint work if you dont add
To your application.html
page.title # => "The title" page.has_title?("The title") # => true page.should have_title("The title")