I would like to be able see the output from the path requested within one of my view specs. Rspec has access to the rendered view, but I would like access to it myself. Does anyone know how to actually view the rendered views?
If, like me, you either don't want to use capybara + launchy, or you can't get it to work, you can just do this:
IO.write('/tmp/test.html', rendered)
... and if you're on a mac:
`open /tmp/test.html`
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With