mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-19 13:03:14 +12:00
chore: remove kind favoring path
This commit is contained in:
parent
a03bff1942
commit
a0f7b1019d
1 changed files with 4 additions and 3 deletions
|
@ -235,15 +235,16 @@ defmodule Mix.Tasks.AshPostgres.Install do
|
||||||
end
|
end
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
module_name = Igniter.Code.Module.module_name("DataCase")
|
||||||
|
|
||||||
igniter
|
igniter
|
||||||
|> Igniter.Code.Module.find_and_update_or_create_module(
|
|> Igniter.Code.Module.find_and_update_or_create_module(
|
||||||
Igniter.Code.Module.module_name("DataCase"),
|
module_name,
|
||||||
default_data_case_contents,
|
default_data_case_contents,
|
||||||
# do nothing if already exists
|
# do nothing if already exists
|
||||||
fn zipper -> {:ok, zipper} end,
|
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
|
end
|
||||||
|
|
||||||
defp add_test_supports_to_elixirc_paths(igniter) do
|
defp add_test_supports_to_elixirc_paths(igniter) do
|
||||||
|
|
Loading…
Reference in a new issue