Can I, as a human, view the RSpec rendered views, and if, so how?
问题 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? 回答1: You can use capybara with launchy, and then you can use capybara's save_and_open_page method. Read more details in this blog post. 回答2: Do you want to see it rendered in a browser or just HTML is fine? You should be able to access HTML in an instance variable