View Source Ash.Test (ash v3.4.49)

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

assert_has_error(changeset_query_or_input, error_class \\ nil, callback, opts \\ [])

Assert 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.

refute_has_error(changeset_query_or_input, error_class \\ nil, callback, opts \\ [])

Refute 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.

strip_metadata(structs)

Clears the __metadata__ field and the underlying ecto __meta__ field

This allows for easier comparison of changeset/query results