Skip to content

Instantly share code, notes, and snippets.

@dogweather
Created June 8, 2018 08:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dogweather/4f4abed231d964258a0413e6a89cf83c to your computer and use it in GitHub Desktop.
scenario 'www home page has an About link in the nav bar' do
visit_path '/', at_host: 'www.public.law'
Capybara.within('#top-navbar') do
expect(Capybara.page).to have_content('About us')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment