How to reference a local variable in FactoryGirl

I think the local trait answer works. thx

I have a SO overflow question about whether you can create local variables in a FactoryGirl definition. Here’s the question and you can answer there. ruby on rails - how to get a reference to a variable in FactoryGirl - Stack Overflow Thx in advance!