This test should pass, but it does not :-/ Why?

Alexander S. wrote:

230814’s gists · GitHub

I should give some keywords here:
I set an expectation in the test that a redirect_to should take place if
a certain condition is made: @login_user.categories.size <= 0.
But the test fails and says: “expected redirect to {:action=>“index”},
got no redirect”

Alexander S. wrote:

Alexander S. wrote:

230814’s gists · GitHub

I should give some keywords here:
I set an expectation in the test that a redirect_to should take place if
a certain condition is made: @login_user.categories.size <= 0.
But the test fails and says: “expected redirect to {:action=>“index”},
got no redirect”

argh,
i know whats missing: get :assign
g