We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
So I have this factory:
factory :product do origin { :amazon } origin_id { rand(100000).to_s } end
If I create it like this then origin and origin_id are present:
origin
origin_id
@product = create(:product)
But if I create it like this, then origin and origin_id are nil:
@product = create(:product, origin: :amazon, origin_id: '1234')
I traced it down to AttributeAssigner#alias_names_to_ignore but I lack deep knowledge of the gem to send a pull request.
AttributeAssigner#alias_names_to_ignore
The text was updated successfully, but these errors were encountered:
I've found these previous discussions helpful:
after
FactoryGirl.aliases
Sorry, something went wrong.
{attribute}
{attribute}_id
Closing in favor of #1142
No branches or pull requests
So I have this factory:
If I create it like this then
origin
andorigin_id
are present:But if I create it like this, then
origin
andorigin_id
are nil:I traced it down to
AttributeAssigner#alias_names_to_ignore
but I lack deep knowledge of the gem to send a pull request.The text was updated successfully, but these errors were encountered: