ash_sqlite/test/ecto_compatibility_test.exs
2023-09-22 22:52:22 -04:00

12 lines
297 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{name: "The Org"}
|> AshSqlite.TestRepo.insert!()
assert org.name == "The Org"
end
end