Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions test/side_load_test.exs → test/load_test.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule AshPostgres.Test.SideLoadTest do
defmodule AshPostgres.Test.LoadTest do
use AshPostgres.RepoCase, async: false
alias AshPostgres.Test.{Api, Comment, Post}

Expand Down Expand Up @@ -44,7 +44,7 @@ defmodule AshPostgres.Test.SideLoadTest do
assert [%Comment{post: %{title: "match"}}] = results
end

test "many_to_many side loads work" do
test "many_to_many loads work" do
source_post =
Post
|> Ash.Changeset.new(%{title: "source"})
Expand All @@ -67,8 +67,8 @@ defmodule AshPostgres.Test.SideLoadTest do
assert %{linked_posts: [%{title: "destination"}]} = results
end

describe "lateral join side loads" do
test "lateral join side loads (loads with limits or offsets) are supported" do
describe "lateral join loads" do
test "lateral join loads (loads with limits or offsets) are supported" do
assert %Post{comments: %Ash.NotLoaded{type: :relationship}} =
post =
Post
Expand Down Expand Up @@ -122,7 +122,7 @@ defmodule AshPostgres.Test.SideLoadTest do
assert [%Post{comments: [%{title: "def"}, %{title: "abc"}]}] = results
end

test "lateral join side loads with many to many relationships are supported" do
test "lateral join loads with many to many relationships are supported" do
source_post =
Post
|> Ash.Changeset.new(%{title: "source"})
Expand Down