I have a failing test for my Rails project (where a certain piece content is supposed to appear on the page, but is not), and I’m trying to debug it using the debugger gem. Because I see what I think is correct content when I view a page in the browser, I want to run IRB within the debugger and see what the content of the page is when the test is running. My test executes visit sponsor_path(sponsor). Is there a way to fetch the content of that route/path in IRB?
I have a failing test for my Rails project (where a certain piece content
Share
When using rspec and capybara, you can have a look at the page with
save_and_open_pageCall it after you
visita path, and it will save the current page (much like doing a save from your browser) and open it.