I’m trying to create a functional test where the controller action (for
now, anyway) breaks apart a string and populates intermediate variables
with the results. I want to check the intermediate vars in my test, so I
tried the following
(in the controller)
do some processing, etc.
@string_segment = “howdy”
(in the unit test)
post :string_action, … some params here, etc.
assert_equal “howdy”, assigns[“string_segment”]
The assigns always comes up nil, so I must be missing something here.