Update Testing gems to v6 (major)
This MR contains the following updates:
Package | Update | Change |
---|---|---|
factory_bot_rails (changelog) | major |
'~> 5.2.0' -> '~> 6.4.0'
|
puma | major |
'~> 5.6.4' -> '~> 6.4.0'
|
rspec-rails (changelog) | major |
5.1.2 -> 6.1.2
|
shoulda-matchers (source, changelog) | major |
'~> 5.3.0' -> '~> 6.2.0'
|
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
thoughtbot/factory_bot_rails (factory_bot_rails)
v6.4.3
: 6.4.3
- Changed: allow sequence definitions for ActiveRecord primary keys (Mike Burns).
- Changed: Support Ruby 3.0+, Rails 6.1+ (Mike Burns)
- Documentation improvements (obregonia1).
- Internal: GitHub Actions improvements (Lorenzo Zabot, ydah).
- Internal: RubyGems points to changelog (Tilo Sloboda).
- Internal: Bump standard, rake, activerecord, appraisal, rspec-rails (Mike Burns).
v6.4.2
- Fixed: Fix Rails 7.1.2 + monkey-patched ActiveRecord compatibility (Adif Sgaid, Benoit Tigeot)
- Internal: Test against Rails 7.1 (y-yagi)
- Internal: Fix links to old files after renaming the main branch to
main
(y-yagi)
v6.4.0
: 6.4.0
v6.3.0
: 6.3.0
- Changed: reject sequence definitions for ActiveRecord primary keys (Sean Doyle).
- Changed: factory_bot dependency to ~> 6.4 (Mike Burns).
- Changed: upgrade dependencies (Daniel Colson).
- Add:
projections.json
for Rails.vim (Caleb Hearth). - Docs: fix broken link (Edu Depetris).
- Docs: mention Rails generator in docs (Edu Depetris).
- Docs: fix typo (Yudai Takada).
- Internal: skip Spring version 2.1.1 due to a bug in that release (Christina Entcheva, Daniel Colson).
- Internal: test against Rails 6.1 (Antonis Berkakis).
- Internal: test against Ruby 3 (Daniel Colson).
- Internal: fewer warnings in Cucumber tests (Daniel Colson).
- Internal: use GitHub Actions for CI (Mathieu Jobin).
- Internal: a whole bunch of cleanup (Daniel Colson).
- Internal: fix CI due to a Bundler output change (Mike Burns).
v6.2.0
- Changed: factory_bot dependency to ~> 6.2.0
v6.1.0
- Changed: factory_bot dependency to ~> 6.1.0
v6.0.0
- Fixed: generate a plural factory name when the
--force-plural
flag is provided - Changed: factory_bot dependency to ~> 6.0.0
- Removed:
"factory_bot.register_reloader"
initializer, now registering the reloader after application initialization - Removed: support for EOL versions of Ruby (2.3, 2.4) and Rails (4.2)
rspec/rspec-rails (rspec-rails)
v6.1.2
Bug Fixes:
- Fix generated mailer paths to match Rails convention. (Patrício dos Santos, #2735)
- Fix class in template for generator specs. (Nicolas Buduroi, #2744)
v6.1.1
Bug Fixes:
- Improved deprecation message for
RSpec::Rails::Configuration.fixture_paths
(Benoit Tigeot, #2720) - Fix support for namespaced fixtures in Rails 7.1. (Benedikt Deicke, #2716)
v6.1.0
Enhancements:
- Support for Rails 7.1
- Minor tweak to generated
rails_helper.rb
to useRails.root.join
. (@masato-bkn, Ryo Nakamura, #2640, #2678) - Add
RSpec::Rails::Configuration.fixture_paths
configuration to support the matching change toActiveRecord::TestFixtures
, previous singular form is deprecated and will be removed in Rails 7.2. (Juan Gueçaimburu, #2673) - Add
send_email
matcher to match emails rather than specific jobs. (Andrei Kaleshka, #2670) - When using
render
in view specs,:locals
will now be merged into the default implicit template, allowingrender locals: {...}
style calls. (Jon Rowe, #2686) - Add support for
Rails.config.action_mailer.preview_paths
on Rails 7.1/ (Jon Rowe, #2706)
v6.0.4
Bug Fixes:
- Fuzzy match
have_broadcasted_to
so that argument matchers can be used. (Timothy Peraza, #2684) - Fix fixture warning during
:context
hooks on Railsmain
. (Jon Rowe, #2685) - Fix
stub_template
on Railsmain
. (Jon Rowe, #2685) - Fix variable name in scaffolded view specs when namespaced. (Taketo Takashima, #2694)
- Prevent
take_failed_screenshot
producing an additional error throughmetadata
access. (Jon Rowe, #2704) - Use
ActiveSupport::ExecutionContext::TestHelper
on Rails 7+. (Jon Rowe, #2711) - Fix leak of templates stubbed with
stub_template
on Rails 7.1. (Jon Rowe, #2714)
v6.0.3
Bug Fixes:
- Set
ActiveStorage::FixtureSet.file_fixture_path
when including file fixture support. (Jason Yates, #2671) - Allow
broadcast_to
matcher to take Symbols. (@Vagab, #2680)
v6.0.2
Bug Fixes:
- Fix ActionView::PathSet when
render_views
is off for Rails 7.1. (Eugene Kenny, Iliana, #2631) - Support Rails 7.1's
#fixtures_paths
in example groups (removes a deprecation warning). (Nicholas Simmons, #2664) - Fix
have_enqueued_job
to properly detect enqueued jobs when other jobs were performed inside the expectation block. (Slava Kardakov, Phil Pirozhkov, #2573)
v6.0.1
Bug Fixes:
- Prevent tagged logged support in Rails 7 calling
#name
. (Jon Rowe, #2625)
v6.0.0
Enhancements:
- Support Rails 7
- Template tweaks to remove instance variables from generated specs. (Takuma Ishikawa, #2599)
- Generators now respects default path configuration option. (@vivekmiyani, #2508)
Breaking Changes:
- Drop support for Rails below 6.1
- Drop support for Ruby below 2.5 (following supported versions of Rails 6.1)
- Change the order of
after_teardown
fromafter
toaround
in system specs to improve compatibility with extensions and Capybara. (Tim Diggins, #2596)
Deprecations:
- Deprecates integration spec generator (
rspec:integration
) which was an alias of request spec generator (rspec:request
) (Luka Lüdicke, #2374)
thoughtbot/shoulda-matchers (shoulda-matchers)
v6.2.0
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
- Add
against
method in allow_value matcher by @EduardoSCosta (#1543) - Add support for
strict_loading
option in association matchers by @rhannequin and @laicuRoot (#1607) - Add
have_delegated_type
matcher by @matsales28 (#1606) - Add support for
foreign_type
qualifier onAssociationMatcher
by @matsales28 (#1609)
Improvements
- Lazy load
ActionController
andRouting
matchers forActionController::TestCase
by @ilianah (#1613) - Call dynamic-readme reusable workflow by @stefannibrasil (#1617)
- Update dependencies by @matsales28 (#1611)
- Fix inline documentation for
is_greater_than
invalidate_comparison_of
matcher by @jeduardo824 (#1616) - Fix forgotten colon in documentation by @hotoolong (#1612)
v6.1.0
Bug fixes
- Fix negative form of
validate_numericality
matcher by @matsales28 (#1603)
Features
- Add support for negated matcher on have_secure_password matcher by @amalrik (#1593)
- Add
encrypt
matcher to test usage of theencrypts
macro by @theforestvn88 (#1581) - Add
query_constraints
qualifier on the association matchers by @matsales28 (#1604)
Improvements
- Remove
array_column?
helper fromValidateAbsenceOfMatcher
by @jarenas9539 (#1562) - Bump rubocop version to 1.59.0 by @VSPPedro (#1600)
- Update Ruby version to 3.3.0 by @VSSPedro(#1599)
- Fix
REPRODUCTION_SCRIPT.md
link returning 404 by @VSPPedro (#1602) - Add support for globally enabled frozen-string-literals by @amalrik (#1598)
- Adjust typos in the documentation by @matsales28 (#1597)
v6.0.0
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
- Add normalize matcher by @stephannv. (#1558)
- Add validates_comparison_of matcher by @matsales28. (#1552)
- Add support for Ruby 3.2 by @petergoldstein. (#1536)
- Add support for Ruby 3.3.0-rc1 by @mtasaka and @VSPPedro. ([#1579], #1588)
- Add support for Rails 7.1 by @matsales28. (#1573)
- Add support for array attributes on validate_length_of matcher by @jarenas9539. #1560
- Allow length validation on associations by @matsales28. (#1569)
- Improve have_db_index to better handle columns with multiple indexes by @abrom. (#1542)
- Implement of_sql_type qualifier on have_db_column matcher by @matsales28. (#1555)
Improvements
- When an unrelated error is seen with negated allow_value, give a hint by @matsales28. (#1570)
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.