Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuprog committed Sep 20, 2022
1 parent 707f2ab commit c67ea23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/polymorphic_embed_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ defmodule PolymorphicEmbedTest do
reminder_module = get_module(Reminder, generator)

assert_raise RuntimeError, ~r"cast_polymorphic_embed/3 only accepts a changeset as first argument", fn ->
PolymorphicEmbed.cast_polymorphic_embed(reminder_module, :channel)
PolymorphicEmbed.cast_polymorphic_embed(struct(reminder_module), :channel)
end
end

Expand Down

0 comments on commit c67ea23

Please sign in to comment.