Ruby Gem: Uninitialized constant FactoryBot : <p>Working on a Ruby gem and trying to use FactoryBot inside with RSpec.</p>

<p>I have this in <code>support/factory_bot.rb</code>:</p>

<pre><code>RSpec.configure do |config|
  config.include FactoryBot::Syntax::Methods

  config.before(:suite) do
    FactoryBot.find_definitions
  end
end
</code></pre>

<p>and in <code>spec_helper.rb</code>:</p>

<pre><code>require 'support/factory_bot'
</code></pre>

<p>When I try to run the spec rake task, I get this error:</p>

<pre><code>support/factory_bot.rb:2:in `block in &lt;top (required)&gt;': uninitialized constant FactoryBot (NameError)
</code></pre>

<p>What am I missing? This used to work fine when I was using the old factory_girl gem, but it has broken with the rename to factory_bot. Thanks!!</p>
