Simple one-liner tests for common Rails functionality
against
method in allow_value matcher by @EduardoSCosta (#1543)strict_loading
option in association matchers by @rhannequin and @laicuRoot (#1607)have_delegated_type
matcher by @matsales28 (#1606)foreign_type
qualifier on AssociationMatcher
by @matsales28 (#1609)ActionController
and Routing
matchers for ActionController::TestCase
by @ilianah (#1613)is_greater_than
in validate_comparison_of
matcher by @jeduardo824 (#1616)validate_numericality
matcher by @matsales28 (#1603)encrypt
matcher to test usage of the encrypts
macro by @theforestvn88 (#1581)query_constraints
qualifier on the association matchers by @matsales28 (#1604)array_column?
helper from ValidateAbsenceOfMatcher
by @jarenas9539 (#1562)REPRODUCTION_SCRIPT.md
link returning 404 by @VSPPedro (#1602)Thanks everyone for the contributions!
Add without_scopes method to enum matcher. (https://github.com/thoughtbot/shoulda-matchers/pull/1453)
Add support for Ruby 3.1. (https://github.com/thoughtbot/shoulda-matchers/pull/1474)
Add allow_blank method to validate_presence_of matcher. (https://github.com/thoughtbot/shoulda-matchers/pull/1499)
Add support for Rails 7.0. No new Rails 7.0 features are supported, but only existing features that broke with the upgrade. (https://github.com/thoughtbot/shoulda-matchers/pull/1506)
Thanks @technicalpickles, @dewyze, @andreLumor for your contributions!
in?
, method from ActiveSupport, with include?
to prevent exception "undefined method in?
" on non-Rails app. (#1405)Add support for Rails 6.1. No new Rails 6.1 features are supported, but only existing features that broke with the upgrade. (#1418)
Add support for RVM (Ruby Version Manager) to setting up local environment. (#1424)
Add support for alias in matcher define_enum. (#1419)
Drop support for Rails 4.2, 5.0 and 5.1 as well as Ruby 2.4 and 2.5 they've been end-of-lifed. The gem now supports Ruby 2.6+ and Rails 5.2+. (#1412, #1415, #1422, #1428, #1429)
Remove deprecated matchers: use_before_filter
, use_after_filter
, use_around_filter
and allow_mass_assignment_of
. (#1430, #1431)
in?
, method from ActiveSupport, with include?
to prevent exception "undefined method in?
" on non-Rails app. (#1405)Add support for Rails 6.1. No new Rails 6.1 features are supported, but only existing features that broke with the upgrade. (#1418)
Add support for RVM (Ruby Version Manager) to setting up local environment. (#1424)
Add support for alias in matcher define_enum. (#1419)
Drop support for Rails 4.2, 5.0 and 5.1 as well as Ruby 2.4 and 2.5 they've been end-of-lifed. The gem now supports Ruby 2.6+ and Rails 5.2+.(#1412, #1415, #1422, #1428, #1429)
Remove deprecated matchers: use_before_filter
, use_after_filter
, use_around_filter
and allow_mass_assignment_of
. (#1430, #1431)
bundle exec yard doc
replacing pygments.rb with rouge to keep the documentation up to date. (#1343)git ls-files
in gemspec to help downstreams maintenance, because they often need to build packages in an environment that does not have git. (#1354)