improved test

This commit is contained in:
Kieran Eglin 2024-06-20 12:02:17 -07:00
parent 8bd8683b99
commit 35cd8177f8
No known key found for this signature in database
GPG key ID: 193984967FCF432D

View file

@ -675,7 +675,9 @@ defmodule Pinchflat.SourcesTest do
test "fails when an invalid regex is provided" do test "fails when an invalid regex is provided" do
source = source_fixture() source = source_fixture()
assert %{errors: [_]} = Sources.change_source(source, %{title_filter_regex: "*FOO"}) changeset = Sources.change_source(source, %{title_filter_regex: "*FOO"})
assert "is invalid" in errors_on(changeset).title_filter_regex
end end
end end