shoulda-matchers v2.3.0 Release Notes

Release Date: 2013-08-16 // almost 11 years ago
    • Fix a bug in ensure_inclusion_of that would cause issues with using in_array with an integer value.

    • Add support for PostgreSQL UUID columns to validates_uniqueness_of (#334).

    • Fix validates_numericality_of so that is_equal_to submatcher works correctly (#326).

    • ๐Ÿ›  Fix context support for validation matchers and disallowed values (#313).

    • Add a counter_cache submatcher for belongs_to associations (#311).

    • โž• Add a rescue_from matcher for Rails controllers which checks that the correct ActiveSupport call has been made and that the handlers exist without actually throwing an exception (#287).

    • ๐Ÿ”„ Changed the scope of AssociationMatcher methods from protected to private.

    • Extracted #order, #through, and #dependent from AssociationMatcher as their own submatchers.