DEV: Improve spec to use the constant length

This commit is contained in:
Robin Ward 2020-02-03 15:15:02 -05:00
parent ee17138c0f
commit 14ae574bc5
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ describe User do
end
it "doesn't raise an error if the name is longer than the max password length" do
user.name = 'x' * 220
user.name = 'x' * (User.max_password_length + 1)
expect(user).to be_valid
end
end