#post method in tests with a different controller


Category:
Scripts
Ruby
Requirements:
Seller:
Price:
-
System:
Rating:
4.3
License:

Description - #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. 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.



More in Ruby-#post method in tests with a different controller

Tests With Post Method Instance Variable That`s