rails/rails — Issue #3415: @locals seems to be Nil in assert_template
Author: mjhasson
Created: 2011-10-24 07:11:45+00:00
State: open

When using the :locals option it gives the following error:

Failure/Error: response.should render_template(
NoMethodError:
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.[]

https://github.com/rails/rails/blob/94a780356cd2ea6c7cb1ce75525596b28857870b/actionpack/lib/action_controller/test_case.rb#L91