Use Ecto.UUID instead of hand-rolled type

This commit is contained in:
Claudio Ortolina
2025-07-03 21:07:42 +01:00
parent d91685b646
commit 024ba38b63
3 changed files with 3 additions and 26 deletions
@@ -108,7 +108,7 @@ defmodule MusicLibrary.ScrobbleRules.ScrobbleRuleTest do
changeset = ScrobbleRule.changeset(%ScrobbleRule{}, attrs)
refute changeset.valid?
assert "must be a valid MusicBrainz ID (UUID format)" in errors_on(changeset).target_musicbrainz_id
assert "is invalid" in errors_on(changeset).target_musicbrainz_id
end
test "valid changeset with uppercase UUID" do