You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failure/Error: it { is_expected.to validate_length_of(:name).within(1..100).to_allow(nil: true) } NoMethodError: undefined method `to_allow' for #<Mongoid::Matchers::Validations::ValidateLengthOfMatcher:0x000055f3d7c01158> Did you mean? to_yaml
Did I make something wrong or it is a bug?
Rails validates_length_of validator.
The text was updated successfully, but these errors were encountered:
dks17
changed the title
validate_length_of undefined method `to_allow' for
validate_length_of undefined method `to_allow'
Feb 28, 2018
I have:
and caught the error:
Did I make something wrong or it is a bug?
Rails validates_length_of validator.
The text was updated successfully, but these errors were encountered: