3 ms·
Do you test your controllers? I'm trying to find some good documentation on how to do that but get warnings to use `build_conn` instead of `conn` when using th
by xutopia 10y ago
Do you test your controllers? I'm trying to find some good documentation on how to do that but get warnings to use `build_conn` instead of `conn` when using the example here: https://github.com/smpallen99/coherence/wiki/Testing-with-Coherence https://github.com/smpallen99/coherence/wiki/Testing-with-Co...
- jclem 10y agoIf you're getting that in a test, my guess is that you're not passing a context argument with `conn` in it to your test function (e.g. `test "foo", %{conn: conn} do`. There's a deprecated `conn/0` function that you'll accidentally call instead if you forget to do this.
- behrendtio 10y ago`conn` is the old version, newer versions of Phoenix use `build_conn`. Just use that
- enraged_camel 10y agoI don't generate my own controllers when installing Coherence. I just use the ones that come "out of the box."