# GIVEN Given('I visit the homepage') do visit '/' end # WHEN # THEN Then('I should see {string}') do |string| page.should have_content "URL Shortener" end