From 831fd8889b9dc498c0164b3ae0627395f3dc2837 Mon Sep 17 00:00:00 2001 From: Todd Morningstar Date: Thu, 4 Apr 2024 16:05:33 -0400 Subject: [PATCH] =?UTF-8?q?Update=20README:=20Local=20Sandbox=20File=20Loc?= =?UTF-8?q?ation=20=F0=9F=93=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The test environment is unable to read an `.ex` file located in the `config/` dir by default for Phoenix apps as of v1.7 This change makes a small edit to the README to suggest the `sandbox.ex` file be placed in the `test/support` dir. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2c2ac523..2e4a9aae 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ This enables the database connection to be owned by the process that is running If you have other resources that should be shared by both processes (e.g. expectations or stubs if using [Mox](https://hexdocs.pm/mox/Mox.html)), then you can define a custom sandbox module: ```elixir -# config/support/sandbox.ex +# test/support/sandbox.ex defmodule YourApp.Sandbox do def allow(repo, owner_pid, child_pid) do