cards
Decks
Ruby on Rails
Sign in
Sign up
Menu
next card
Go back to all cards in this deck
back
previous card
Capybara and RSpec testing
Posted
2014-04-09
. Visible to the public.
visit '/static_pages/home'
expect(page).to have_content('Sample App')
Visit simulates visiting the website (provided by capybara), and capybara also gives us a page variable.
Robb Schuneman
Say thanks
Tags
capybara
,
rails
,
rspec
,
visit
Posted by Robb Schuneman to Ruby on Rails (2014-04-09 07:16)
This website uses short-lived cookies to improve usability.
Accept
or
learn more