From 41a488c80d4310067a6cac67894063f10eb6cdbc Mon Sep 17 00:00:00 2001 From: Jeremy Green Date: Tue, 21 Nov 2023 11:45:14 -0600 Subject: [PATCH] Avoid buggy versions of factory_bot_rails There's a bug in the latest version of `factory_bot_rails`: https://github.com/thoughtbot/factory_bot_rails/issues/433 There's also a fix that hasn't been merged or released yet: https://github.com/thoughtbot/factory_bot_rails/pull/432 I'm setting the `Gemfile` to specifically avoid those buggy versions so that we can get `depfu` un-blocked with keeping gems up to date. --- Gemfile | 3 ++- Gemfile.lock | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index ef8243bf8..b5b566f2e 100644 --- a/Gemfile +++ b/Gemfile @@ -64,7 +64,8 @@ group :development, :test do gem "simplecov", require: false # Generate test objects. - gem "factory_bot_rails" + # 6.3.0 and 6.4.0 have a bug https://github.com/thoughtbot/factory_bot_rails/issues/433 + gem 'factory_bot_rails', '~> 6.2', "!= 6.3.0", "!= 6.4.0" end group :development do diff --git a/Gemfile.lock b/Gemfile.lock index 739e4b07b..fcf2d1f8f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -668,7 +668,7 @@ DEPENDENCIES debug devise devise-two-factor - factory_bot_rails + factory_bot_rails (~> 6.2, != 6.4.0, != 6.3.0) foreman honeybadger jbuilder