I'm upgrading a 4.1.8
app. It has a bunch of controller tests. After the upgrade to 4.2
, every test fails with:
61) Error:
StripeEventsControllerTest#test_handles_known_class:
NoMethodError: undefined method `clear' for nil:NilClass
test/controllers/stripe_events_controller_test.rb:14:in `block in <class:StripeEventsControllerTest>'
Digging in to Rails, it appears that it's due to this line: