Skip to content

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

Compare Source

  • 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

Compare Source

  • 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

Compare Source

v6.3.0: 6.3.0

Compare Source

  • 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

Compare Source

  • Changed: factory_bot dependency to ~> 6.2.0

v6.1.0

Compare Source

  • Changed: factory_bot dependency to ~> 6.1.0

v6.0.0

Compare Source

  • 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

Compare Source

Full Changelog

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

Compare Source

Full Changelog

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

Compare Source

Full Changelog

Enhancements:

  • Support for Rails 7.1
  • Minor tweak to generated rails_helper.rb to use Rails.root.join. (@​masato-bkn, Ryo Nakamura, #​2640, #​2678)
  • Add RSpec::Rails::Configuration.fixture_paths configuration to support the matching change to ActiveRecord::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, allowing render 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

Compare Source

Full Changelog

Bug Fixes:

  • Fuzzy match have_broadcasted_to so that argument matchers can be used. (Timothy Peraza, #​2684)
  • Fix fixture warning during :context hooks on Rails main. (Jon Rowe, #​2685)
  • Fix stub_template on Rails main. (Jon Rowe, #​2685)
  • Fix variable name in scaffolded view specs when namespaced. (Taketo Takashima, #​2694)
  • Prevent take_failed_screenshot producing an additional error through metadata 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

Compare Source

Full Changelog

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

Compare Source

Full Changelog

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

Compare Source

Full Changelog

Bug Fixes:

  • Prevent tagged logged support in Rails 7 calling #name. (Jon Rowe, #​2625)

v6.0.0

Compare Source

Full Changelog

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 from after to around 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

Compare Source

Bug fixes
Features
Improvements

v6.1.0

Compare Source

Bug fixes
Features
Improvements

v6.0.0

Compare Source

Backward-incompatible changes
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

Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about these updates again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Merge request reports