Skip to content

Releases: thoughtbot/shoulda-matchers

v7.0.1

31 Oct 23:30
v7.0.1
2a50331

Choose a tag to compare

7.0.1 - 2025-10-31

Bug fixes

v7.0.0

31 Oct 19:08
v7.0.0
731aaa7

Choose a tag to compare

7.0.0 - 2025-10-31

Backward-incompatible changes

Bug fixes

Features

Improvements

  • Refactor Ruby manager setup, add mise integration by @amalrik (#1674)
  • Update Ruby versions to latest stable releases by @matsales28 (#1676, #1683)
  • Update supported Ruby versions to 3.3.10 and 3.4.7

v6.5.0

25 Apr 19:10
v6.5.0
d8140e8

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v6.4.0...v6.5.0

v6.4.0

16 Aug 20:43
v6.4.0
8890f3d

Choose a tag to compare

6.4.0 - 2024-08-16

What's Changed

Features

v6.3.1

13 Aug 13:12
v6.3.1
f4f93fb

Choose a tag to compare

6.3.1 - 2024-08-13

What's Changed

Bug fixes

  • Ensure DefineEnumForMatcher#validating handles Hash enum values correctly by @mi-wada (#1646)

v6.3.0

09 Aug 21:02
v6.3.0
d56a4b8

Choose a tag to compare

6.3.0 - 2024-08-09

What's Changed

Bug fixes

  • Fix uniqueness check for a polymorphic association with STI by @matsales28 (#1624)

Features

Improvements

v6.2.0

15 Mar 15:11
efd1b39

Choose a tag to compare

6.2.0 - 2024-03-15

Bug fixes

  • Allow beginless and endless ranges in validates_inclusion_of by @pjpires (#1615)
  • Ensure uniqueness validation matcher works with STI by @matsales28 (#1610)

Features

Improvements

v6.1.0

19 Jan 14:55
cff5263

Choose a tag to compare

6.1.0 - 2024-01-19

Bug fixes

Features

  • Add support for negated matcher on have_secure_password matcher by @amalrik (#1593)
  • Add encrypt matcher to test usage of the encrypts macro by @theforestvn88 (#1581)
  • Add query_constraints qualifier on the association matchers by @matsales28 (#1604)

Improvements

v6.0.0

22 Dec 19:54
v6.0.0
4cfa6e7

Choose a tag to compare

Backward-incompatible changes

  • Drop support for Rails 5.2 and 6.0 as well as Ruby 2.6 and 2.7 they've been end-of-lifed by @dougmrqs and @HeitorMC.
    The gem now supports Ruby 3.0+ and Rails 6.1+. (#1521, #1522, #1547, #1548)

Bug fixes

  • Fix validate_uniqueness_of matcher not supporting column of the type timestampz by @callahat. (#1544)
  • Ensure that validation specs work for ActiveModel without ActiveRecord by @stonefield. (#1580)

Features

Improvements

  • When an unrelated error is seen with negated allow_value, give a hint by @matsales28. (#1570)

Thanks everyone for the contributions!

v5.3.0

16 Dec 18:41
a5e3133

Choose a tag to compare

Features

  • Add in: range matcher to validate_numericality_of by @matsales28 . (#1512)

  • Support :uuid column type for validate_absence_of matcher by @dlupu. (#1518)

Bug fixes

  • Fix confusing error message from validate_inclusion_of matcher when used against a polymorphic association. (#1523)