Skip to content

Commit

Permalink
Improve test clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo B committed Apr 25, 2023
1 parent aca48c1 commit b533d92
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/ecto/repo/has_assoc_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -633,9 +633,9 @@ defmodule Ecto.Repo.HasAssocTest do
assoc = schema.assoc
assert assoc.id
assert assoc.name == "xyz"
assert assoc.composite_x == schema.x
assert assoc.composite_y == schema.y
assert assoc.inserted_at
assert assoc.composite_x == 3
assert assoc.composite_y == "a"
assert assoc.updated_at

changeset =
%MyCompositeSchema{x: 4, y: "b"}
Expand All @@ -645,8 +645,8 @@ defmodule Ecto.Repo.HasAssocTest do
[assoc] = schema.assocs
assert assoc.id
assert assoc.name == "xyz"
assert assoc.composite_x == schema.x
assert assoc.composite_y == schema.y
assert assoc.inserted_at
assert assoc.composite_x == 4
assert assoc.composite_y == "b"
assert assoc.updated_at
end
end

0 comments on commit b533d92

Please sign in to comment.