Created
February 11, 2020 21:01
-
-
Save TylerPachal/11cbcac743d12068f33dc62c66b07440 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test "age is required" do | |
params = %{"name" => "tyler"} | |
changset = Person.changeset(%Person{}, params) | |
assert_invalid changeset, :age, error_message =~ "blank" && error_message =~ "please" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment