ash_sqlite/test/ecto_compatibility_test.exs

16 lines
346 B
Elixir
Raw Permalink Normal View History

2023-09-23 14:52:22 +12:00
defmodule AshSqlite.EctoCompatibilityTest do
use AshSqlite.RepoCase, async: false
require Ash.Query
test "call Ecto.Repo.insert! via Ash Repo" do
org =
2023-10-06 06:34:09 +13:00
%AshSqlite.Test.Organization{
id: Ash.UUID.generate(),
name: "The Org"
}
2023-09-23 14:52:22 +12:00
|> AshSqlite.TestRepo.insert!()
assert org.name == "The Org"
end
end