Assert_generates vs assert_recognizes

Can anyone tell me the difference between assert_generates and
assert_recognizes?

I know assert_generates is:
“Verifies that the given set of options generates the specified path.”
while assert_recognizes is:
“Verifies that routing returns a specific set of options given a path.”

But aren’t the results always exactly same regardless which one to use?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs