shoulda-matchers v2.1.0 Release Notes
Release Date: 2013-05-05 // almost 11 years ago-
Add missing
failure_message_for_should_not
implementations tovalidate_numericality_of
and its submatchers.๐ Support validation contexts for testing validations
on: :create
and when using custom contexts likemodel.valid?(:my_context)
.๐ Fix a bug in validations with autosaved models.
Fix maximum value detection for the
ensure_inclusion_of
andensure_exclusion_of
matchers.Add
:odd
and:even
options to thevalidate_numericality_of
matcher.โ Add
:touch
option to AssociationMatcher.๐ Ruby 2.0.0 is now officially supported.
๐ Fix the issue where using
%{attribute}
or%{model}
in I18n translations raised exceptions.Support datetime columns in
validate_uniqueness_of.scoped_to
.Add
allow_nil
option to thevalidate_uniqueness_of
matcher.