ash_sqlite/test/ecto_compatibility_test.exs
2023-10-05 13:34:09 -04:00

15 lines
346 B
Elixir

defmodule AshSqlite.EctoCompatibilityTest do
use AshSqlite.RepoCase, async: false
require Ash.Query
test "call Ecto.Repo.insert! via Ash Repo" do
org =
%AshSqlite.Test.Organization{
id: Ash.UUID.generate(),
name: "The Org"
}
|> AshSqlite.TestRepo.insert!()
assert org.name == "The Org"
end
end