Alternative to adding the gem 'rails-controller-testing'

298 Views Asked by At

I am trying to test that a template was rendered in a request test (via Rspec), but I prefer not to add the rails-controller-testing gem. Is there another alternative?

expect(response).to render_template(:index) # add gem 'rails-controller-testing' to your Gemfile first.
0

There are 0 best solutions below