Skip to content

Commit

Permalink
test must exercise with loaded, even on unchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
leftstanding committed Oct 4, 2023
1 parent a69f11c commit f2f813d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/ecto_diff_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,8 @@ defmodule EctoDiffTest do
|> Pet.new()
|> Repo.insert()

pet = Repo.preload(pet, :toys)

{:ok, updated_pet} = pet |> Pet.update(%{name: "McFluffFace"}) |> Repo.update()
id = pet.id

Expand Down

0 comments on commit f2f813d

Please sign in to comment.