We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77c013f commit d72b569Copy full SHA for d72b569
test/acceptance/post_test.exs
@@ -245,8 +245,8 @@ defmodule Test.Acceptance.PostTest do
245
end
246
247
validations do
248
- validate match(:pin, ~r/^[0-9]{4}$/)
249
- validate string_length(:pin, exact: 4)
+ validate(match(:pin, ~r/^[0-9]{4}$/))
+ validate(string_length(:pin, exact: 4))
250
251
252
@@ -428,7 +428,7 @@ defmodule Test.Acceptance.PostTest do
428
status: 400
429
)
430
431
- # response is a Plug.
+ # response is a Plug.
432
assert %{"errors" => [error_regex, error_length]} = response.resp_body
433
434
assert error_regex["code"] == "invalid_attribute"
0 commit comments