Testing an Ecto Schema

Learn how to update our tests to test for interactivity with the database.

We'll cover the following

Updating our tests

Now, we need to add :id, :inserted_at, and :updated_at into the test’s schema definition. Update the @expected_fields_with_types to include the new fields:

Get hands-on with 1200+ tech skills courses.