View Source Antikythera.Test.ConnHelper (antikythera v0.5.1)
Helper functions to construct Antikythera.Conn
object, to be used within tests.
Typical controller tests are executed as follows:
- Make a
Antikythera.Conn
object. - Pass the object to the target controller action.
- Inspect the returned
Antikythera.Conn
object.
You can use make_conn/1
for the step-1 of the above procedure.
In controller tests this module is auto-imported by use Antikythera.Test.ControllerTestCase
.