Testing Phoenix Controller rendering #186
Labels
help wanted
If you can help make progress with this issue, please comment!
question
A question needs to be answered before progress can be made on this issue
technical
A technical issue that requires understanding of the code, infrastructure or dependencies
Hi there!
I have a basic controller "welcome" that does:
render(conn, "index.html", profile: profile)
There are some assigns to render
I want to write a test that demonstrates that the rendering is correct
if I do:
Since some template assigns are present in the template, my test says that a key is not present.
Using
Plug.Conn.assign(conn, :profile, %{k: v})
is ineffective.Does anyone know how to do this? The doc is void on this or didn't find where.
The text was updated successfully, but these errors were encountered: