docbrown/spec/validators
Daniel Uber 4b93684dab
Don't raise error when empty community emoji setting submitted (#15723)
* Don't raise NoMethodError when validating emoji settings

Cargo culted the unique cross model slug validator setup (which is why
value is called name here in the validatable).

Don't raise an error when validating a nil emoji, and assert nil and
empty string are permitted values.

This expects no non-emoji characters (so an empty string would be
permitted), and nil should be permitted.

I believe this might have been introduced by the string settings
cleaner (exchanging "" for nil in form inputs).

* Update app/validators/emoji_only_validator.rb

guard for value, and then validate value
2021-12-17 09:29:55 -06:00
..
emoji_only_validator_spec.rb Don't raise error when empty community emoji setting submitted (#15723) 2021-12-17 09:29:55 -06:00
unique_cross_model_slug_validator_spec.rb Extracting cross-model uniqueness validator (#15640) 2021-12-06 17:07:47 -05:00
valid_domain_csv_validator_spec.rb Updating valid domain registration (#15436) 2021-11-19 10:05:00 -05:00