Publisher review:#post method in tests with a different controller - I wanted a #login method in test_helper that would allow me to easily login from any of my functional tests. I wanted a #login method in test_helper that would allow me to easily login from any of my functional tests.
However, the #post method won't allow you to set a different controller than the one in the @controller instance variable that's defined in your test's #setup.
Well, by looking at how the #process method works, you can see that it just grabs the controller from @controller.
#post method in tests with a different controller is a Ruby script for Snippets scripts design by moneypenny.
It runs on following operating system: Windows / Linux.
Operating system:Windows / Linux