Packages

Assertions tailored for use in pipelines. Common assertions extracted for easy reuse. Tabular tests.

Current section

Files

Jump to
flow_assertions lib define define.ex
Raw

lib/define/define.ex

defmodule FlowAssertions.Define do
@moduledoc """
`use` this module to get all the assertion-definition helpers at once.
Specifically:
* `ExUnit.Assertions`
* `ExUnit.AssertionError` (as an alias)
* `FlowAssertions.Define.Defchain` (the `defchain` macro)
* `FlowAssertions.Define.BodyParts` (functions useful in assertion bodies)
"""
defmacro __using__(_) do
quote do
import ExUnit.Assertions
alias ExUnit.AssertionError
import FlowAssertions.Define.Defchain
import FlowAssertions.Define.BodyParts
end
end
end