Using the same value for two attributes in FactoryGirl
<p>I'm setting up an <code>Artist</code> model that has <code>name</code>and <code>birth_name</code> attributes. In some cases, an artist's stage name is synonomous with their real name, vice-versa. What I'd like to do in my factory is use the <code>birth_name</code> (created using Faker) as the <code>name</code> attribute.  I tried simply referencing as so:</p>
<pre><code>FactoryGirl.define do
  factory :artist do
    name { birth_name }
    birth_name { Faker::Name.name }
  end
end
</code></pre>
<p>but get this error:</p>
<pre><code>ArgumentError: Factory not registered: birth_name
</code></pre>
<p>What's the best way to get this to work?</p>