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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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
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.

1 participant