Writing a Blog Engine in Phoenix and Elixir: Part 8, finishing comments
Brandon Richey

I think this should check for redirection for post.user path, not just user .

Otherwise I'm getting different user id in path, like this:

Assertion with == failed
code:  redirected_to(conn) == user_post_path(conn, :show, user, post)
left:  "/users/5633/posts/1432"
right: "/users/5632/posts/1432"
test/controllers/comment_controller_test.exs:42: (test)
Like what you read? Give Michal Gritzbach a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.