Skip to content

Commit

Permalink
Remove unclean way to test initializer
Browse files Browse the repository at this point in the history
This is useless because we miss the context
  • Loading branch information
benoittgt committed Nov 23, 2023
1 parent 801d611 commit aa98fdf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion spec/factory_bot_rails/railtie_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit aa98fdf

Please sign in to comment.