improved test
This commit is contained in:
parent
8bd8683b99
commit
35cd8177f8
1 changed files with 3 additions and 1 deletions
|
|
@ -675,7 +675,9 @@ defmodule Pinchflat.SourcesTest do
|
|||
test "fails when an invalid regex is provided" do
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue