From f07e2c148a7b2849278137fab3f2565ba5ecce13 Mon Sep 17 00:00:00 2001 From: Jeremy Green Date: Tue, 21 Nov 2023 09:55:06 -0800 Subject: [PATCH] Avoid buggy versions of factory_bot_rails (#1173) * 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. * dang linter --- Gemfile | 3 ++- Gemfile.lock | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 6691765ae..ce9f9495c 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 2201c9930..8c27605f2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -666,7 +666,7 @@ DEPENDENCIES debug devise devise-two-factor - factory_bot_rails + factory_bot_rails (~> 6.2, != 6.4.0, != 6.3.0) foreman honeybadger jbuilder