Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pls provide an updated example without slate integration | Example bug? #76

Open
snackfart opened this issue Nov 19, 2021 · 1 comment

Comments

@snackfart
Copy link

Also this
test "GET /api/v1/products" do conn = conn() |> get("/api/v1/products") |> doc assert conn.status == 200 end

generates following error message after running "DOC=1 mix test":

== Compilation error in file test/backend_web/controllers/page_controller_test.exs ==
** (CompileError) test/backend_web/controllers/page_controller_test.exs:16: undefined function conn/0
(elixir 1.12.2) src/elixir_locals.erl:114: anonymous fn/3 in :elixir_locals.ensure_no_undefined_local/3
(stdlib 3.15.2) erl_eval.erl:685: :erl_eval.do_apply/6
(elixir 1.12.2) lib/kernel/parallel_compiler.ex:428: Kernel.ParallelCompiler.require_file/2
(elixir 1.12.2) lib/kernel/parallel_compiler.ex:321: anonymous fn/4 in Kernel.ParallelCompiler.spawn_workers/7

I´m using Elixir version "1.12.2" with Phoenix 1.5.12 and this version of bureaucrat:
{:bureaucrat, git: "https://github.com/api-hogs/bureaucrat.git", only: [:dev, :test]} (but it also doesnt work with version 0.2.7)

@fastjames
Copy link
Contributor

@snackfart I submitted a PR (which was merged) that corrects the syntax in the example you quoted above. Thanks for the heads-up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants