I often see long before blocks with lots of should_receive...
...and_return inside. Remember that before blocks are about...
Best results in other decks
visit '/static_pages/home' expect(page).to have_content('Sample App') Visit simulates visiting the website (provided by capybara), and capybara also...
$ rails generate integration_test static_pages