Undefined method `merge’ for nil error in controller tests after upgrading Rails from 5.2 to 6.1
I have recently upgraded my Rails application from version 5.2 to 6.1. After the upgrade, everything appears to be functioning correctly, except my controller test cases are now throwing the following error: