From a0f7b1019da89aba0510611f300cc78787e15bc2 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Tue, 9 Jul 2024 20:36:50 -0400 Subject: [PATCH] chore: remove kind favoring path --- lib/mix/tasks/ash_postgres.install.ex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/mix/tasks/ash_postgres.install.ex b/lib/mix/tasks/ash_postgres.install.ex index f2e99f7..3c8f60b 100644 --- a/lib/mix/tasks/ash_postgres.install.ex +++ b/lib/mix/tasks/ash_postgres.install.ex @@ -235,15 +235,16 @@ defmodule Mix.Tasks.AshPostgres.Install do end """ + module_name = Igniter.Code.Module.module_name("DataCase") + igniter |> Igniter.Code.Module.find_and_update_or_create_module( - Igniter.Code.Module.module_name("DataCase"), + module_name, default_data_case_contents, # do nothing if already exists fn zipper -> {:ok, zipper} end, - kind: :test_support + path: Igniter.Code.Module.proper_location(module_name, "test/support") ) - |> add_test_supports_to_elixirc_paths() end defp add_test_supports_to_elixirc_paths(igniter) do