Esther Olatunde
About
TIL
#rspec
|
#capybara
|
#rails
August 13, 2017
Logging the page content in Rspec Capybara tests in Rails
This is useful for when debugging your tests.
Option 1:
puts
page
.
body
Option 2:
save_and_open_page
view raw
print_page_capybara.md
hosted with ❤ by
GitHub