Bonny.Axn.Test (bonny v1.5.0)

Copy Markdown View Source

Conveniences for testing Axn steps.

This module can be used in your test cases, like this:

use ExUnit.Case, async: true
use Bonny.Axn.Test

Using this module will:

  • import all the functions from this module
  • import all the functions from the Bonny.Axn module
  • import all the functions from the Pluggable.Token module

Summary

Functions

assigns(axn)

@spec assigns(Bonny.Axn.t()) :: map()

axn(action, fields \\ [])

@spec axn(atom(), Keyword.t()) :: Bonny.Axn.t()

descendants(axn)

@spec descendants(Bonny.Axn.t()) :: [Bonny.Resource.t()]

events(axn)

@spec events(Bonny.Axn.t()) :: [Bonny.Event.t()]

status(axn)

@spec status(Bonny.Axn.t()) :: map()