How to test rendering a partial with RSpec
Latest rspec version suggest to use expect
syntax rather than should
:
expect(response).to render_template(partial: 'partial_name')
Also try this
response.should render_template(:partial => 'partial_name')