From aa98fdf448e9f2d84fffdbcea98b2aa7b11d3537 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Thu, 23 Nov 2023 12:48:17 +0100 Subject: [PATCH] Remove unclean way to test initializer This is useless because we miss the context --- spec/factory_bot_rails/railtie_spec.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/spec/factory_bot_rails/railtie_spec.rb b/spec/factory_bot_rails/railtie_spec.rb index 92234ed7..807be704 100644 --- a/spec/factory_bot_rails/railtie_spec.rb +++ b/spec/factory_bot_rails/railtie_spec.rb @@ -40,7 +40,6 @@ def touch(file) def reload_rails! Rails.application.reloader.reload! - FactoryBotRails::Railtie.initializers.find {|initializer| initializer.name == 'factory_bot.reject_primary_key_attributes' }.run wait_for_rails_to_reload end