Testing Elixir (PragProg)

Thanks for responding @idlehands

In this file:
testing_phoenix/not_skull/lib/not_skull/accounts/accounts.ex
These changes:

-defmodule MyApp.Accounts do
+defmodule NotSkull.Accounts do

-  alias MyApp.Repo
-  alias MyApp.Accounts.User
-  alias MyApp.ExternalServices.Email
+  alias NotSkull.Repo
+  alias NotSkull.Accounts.User
+  alias NotSkull.ExternalServices.Email

There is the same MyApp issue in testing_phoenix/not_skull/test/accounts/accounts_test.exs

In these files:
testing_phoenix/not_skull/test/active_games_test.exs
testing_phoenix/not_skull/test/game_engine_test.exs

The assert is_uuid/1 function is not defined.

And lastly, the error I gave up on:

(CompileError) test/game_engine_test.exs:575: undefined function first_guesser/0

This last one made me assume the code bundle was incomplete because this function is clearly not from a dependency that I somehow don’t have installed correctly.

1 Like