Skip to content
New issue

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

Add support for named traits arg with association #84

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

parndt
Copy link
Contributor

@parndt parndt commented May 8, 2023

Traits can currently be specified as the second argument when calling
association:

Factory.define :category do |category|
  category.association :image, :fancy 
end

This change will add support for specifying traits: as an option:

Factory.define :category do |category|
  category.association :image, traits: [:fancy]
end

@parndt parndt requested a review from solnic as a code owner May 8, 2023 06:07
@flash-gordon flash-gordon merged commit 61e1ff7 into rom-rb:main Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants