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

Factories are defined twice #21

Open
fastjames opened this issue Oct 11, 2019 · 1 comment
Open

Factories are defined twice #21

fastjames opened this issue Oct 11, 2019 · 1 comment

Comments

@fastjames
Copy link

I ran into a problem this morning where I was getting some errors about factories being defined twice. I then noticed that most of the factories are defined both in lib/solidus_flexi_variants/factories.rb and in individual files under spec/factories. I don't know if this is a recent change in factory_bot or a convention with which I'm not familiar (I am used to looking for one factories file in a gem).

I am happy to remove one set or the other.

@dhonig
Copy link
Contributor

dhonig commented Oct 11, 2019

Not sure how this came about. My vote is for spec/factories to live on and to drop the ones under lib. Doesn't really make much sense to have code for testing co-mingled with the functional code.

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

No branches or pull requests

2 participants