FactoryGirl creating factories objects on start <p>For some reason, when I run </p> <pre><code>rspec specs </code></pre> <p>The models defined on Factory girl are automatically created. I was expecting to create the objects with sentences like:</p> <pre><code>FactoryGirl.create(:user) </code></pre> <p>But I am having a lot of duplication problems due to this.</p> <p>Moreover, if I go to the rails console and I type:</p> <pre><code>require 'factory_girl_rails' </code></pre> <p>It inserts some records on my database.</p> <p>Is this expected behavior?</p> <p>UPDATE: The problem was on my factory (silly mistake). I was calling create method there.</p> <pre><code>FactoryGirl.define do factory :user do email "user@example2.com" first_name "Myname" last_name "MyLast name" password "DoeDoe12" api_license FactoryGirl.create(:api_license) end end </code></pre>