Skip to content

Instantly share code, notes, and snippets.

@lasseebert
Created October 17, 2016 19:48
Show Gist options
  • Save lasseebert/fe6b7c5ebee1b57c9ba387c47e1af12a to your computer and use it in GitHub Desktop.
Save lasseebert/fe6b7c5ebee1b57c9ba387c47e1af12a to your computer and use it in GitHub Desktop.
$ mix test
Compiling 3 files (.ex)
...
1) test inviting a user responds with the new user (MyApp.UserController.InviteTest)
test/controllers/user_controller/invite_test.exs:4
** (UndefinedFunctionError) function MyApp.UserController.init/1 is undefined (module MyApp.UserController is not available)
stacktrace:
MyApp.UserController.init(:create)
(my_app) web/router.ex:1: anonymous fn/1 in MyApp.Router.match_route/4
(my_app) lib/phoenix/router.ex:261: MyApp.Router.dispatch/2
(my_app) web/router.ex:1: MyApp.Router.do_call/2
(my_app) lib/my_app/endpoint.ex:1: MyApp.Endpoint.phoenix_pipeline/1
(my_app) lib/my_app/endpoint.ex:1: MyApp.Endpoint.call/2
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5
test/controllers/user_controller/invite_test.exs:7: (test)
Finished in 0.06 seconds
4 tests, 1 failure
Randomized with seed 999258
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment