shoulda-matchers v2.1.0 Release Notes

Release Date: 2013-05-05 // almost 11 years ago
    • Add missing failure_message_for_should_not implementations to validate_numericality_of and its submatchers.

    • ๐Ÿ‘Œ Support validation contexts for testing validations on: :create and when using custom contexts like model.valid?(:my_context).

    • ๐Ÿ›  Fix a bug in validations with autosaved models.

    • Fix maximum value detection for the ensure_inclusion_of and ensure_exclusion_of matchers.

    • Add :odd and :even options to the validate_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 the validate_uniqueness_of matcher.