Skip to content

Instantly share code, notes, and snippets.

@lasseebert
Created October 17, 2016 20:13
Show Gist options
  • Select an option

  • Save lasseebert/0791cbbab34e5c1e5ad31b099cf07572 to your computer and use it in GitHub Desktop.

Select an option

Save lasseebert/0791cbbab34e5c1e5ad31b099cf07572 to your computer and use it in GitHub Desktop.
$ mix test test/contexts
1) test it creates a user (MyApp.Users.InviteTest)
test/contexts/users/invite_test.exs:7
** (Postgrex.Error) ERROR (undefined_table): relation "users" does not exist
stacktrace:
(ecto) lib/ecto/adapters/sql.ex:463: Ecto.Adapters.SQL.struct/6
(ecto) lib/ecto/repo/schema.ex:397: Ecto.Repo.Schema.apply/4
(ecto) lib/ecto/repo/schema.ex:193: anonymous fn/11 in Ecto.Repo.Schema.do_insert/4
test/contexts/users/invite_test.exs:8: (test)
Finished in 0.04 seconds
1 test, 1 failure
Randomized with seed 711320
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment