``` ruby
describe "Home page" do
  before { visit '/static_pages/home' }

  it "contains 'Sample App'" do
    page.should have_selector('h1', text: 'Sample App')
  end

  it "has a title" do
    page.should have_selector('title', text: "RoR Sample App\n|\nHome")
  end
end
```