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:

  1. Make a Antikythera.Conn object.
  2. Pass the object to the target controller action.
  3. 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.

Summary

Functions