def index @user end How to check the value of the user variable when in the tests we move to the controller's index method?
def index @user end How to check the value of the user variable when in the tests we move to the controller's index method?
Source: https://ru.stackoverflow.com/questions/509545/
All Articles
instance_variable_getmethod can be used, that is, so:instance_of_controller.instance_variable_get(:@user), after it has completed theindexmethod - MAXOPKA