Add it to the spec_helper.rb configuration.
You can add render_views to your rspec configuration, for example:
In your spec_helper.rb :
RSpec.configure do |config|
Disabling render_views .
You can disable rendering based on description / context with render_views false , for example:
context "without view rendering even with global render_views on" do render_views false
source share