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

View File

@ -67,7 +67,7 @@ describe User do
end end
it "doesn't raise an error if the name is longer than the max password length" do 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 expect(user).to be_valid
end end
end end