Current section
Files
Jump to
Current section
Files
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.AssertionError`
"""
defmacro __using__(_) do
quote do
import ExUnit.Assertions
alias ExUnit.AssertionError
import FlowAssertions.Define.Defchain
import FlowAssertions.Define.AssertionError
end
end
end