aaronrenner / phx_gen_auth

An authentication system generator for Phoenix 1.5 applications.
772 stars 55 forks source link

Update document for mix test #13

Closed goofansu closed 4 years ago

goofansu commented 4 years ago

In case the application is upgraded from Phoenix 1.4.

The test will fail without this line:

== Compilation error in file test/brightu_web/controllers/user_session_controller_test.exs ==
** (CompileError) test/brightu_web/controllers/user_session_controller_test.exs:2: unsupported option :login_user given to import
    (brightu_web 0.1.0) expanding macro: BrightuWeb.ConnCase.__using__/1
    test/brightu_web/controllers/user_session_controller_test.exs:2: BrightuWeb.UserSessionControllerTest (module)
    (elixir 1.10.2) expanding macro: Kernel.use/2
    test/brightu_web/controllers/user_session_controller_test.exs:2: BrightuWeb.UserSessionControllerTest (module)
    (elixir 1.10.2) lib/kernel/parallel_compiler.ex:396: Kernel.ParallelCompiler.require_file/2
    (elixir 1.10.2) lib/kernel/parallel_compiler.ex:306: anonymous fn/4 in Kernel.ParallelCompiler.spawn_workers/7
aaronrenner commented 4 years ago

Thanks so much for finding this and sending a PR! :heart: