View Source Ash.Test (ash v3.0.0-rc.31)
Testing helpers for Ash.
Summary
Functions
Assert that the given changeset, query, or action input has a matching error.
Refute that the given changeset, query, or action input has a matching error.
Clears the __metadata__
field and the underlying ecto __meta__
field
Functions
Link to this function
assert_has_error(changeset_query_or_input, error_class \\ nil, callback, opts \\ [])
View SourceAssert that the given changeset, query, or action input has a matching error.
Use the optional second argument to assert that the errors (all together) are of a specific class.
Link to this function
refute_has_error(changeset_query_or_input, error_class \\ nil, callback, opts \\ [])
View SourceRefute that the given changeset, query, or action input has a matching error.
Use the optional second argument to assert that the errors (all together) are of a specific class.
Clears the __metadata__
field and the underlying ecto __meta__
field
This allows for easier comparison of changeset/query results