thoughtbot--shoulda-matchers/spec/support/unit/model_creation_strategies
Elliot Winkler 217a0b04ea Presence: check before assigning empty string
A previous commit updated the presence matcher so that when it is
testing invalid values for the attribute in question, it now considers
an empty string as one of those values. However, a string is not always
a valid value for an attribute. For instance, an attribute that is
decorated with `serialize` where the serialization class is Array cannot
be set to a string at all, and doing so will raise an error immediately.

With that in mind, this commit adds checks to ensure that it is safe to
try an empty string.
2019-06-13 00:39:00 -06:00
..
active_model.rb Presence: check before assigning empty string 2019-06-13 00:39:00 -06:00
active_record.rb Rewrite have_db_index matcher 2019-05-30 21:15:52 -06:00