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

Force creation of factory skipping validation creates SystemStackError in Rails 5 #934

Closed
Schwad opened this issue Aug 3, 2016 · 1 comment

Comments

@Schwad
Copy link

Schwad commented Aug 3, 2016

I have been using the solution articulated in #578 for about five months.

to_create {|instance| instance.save(validate: false) }

Since upgrading to Rails 5 and running RSpec, I now get:

Failure/Error: to_create {|instance| instance.save(validate: false) }

       SystemStackError:
         stack level too deep

Thoughts?

@Schwad
Copy link
Author

Schwad commented Aug 3, 2016

Alright, it looks like it was coming from elsewhere, not factory girl, if someone ends up here with the same error this is where I headed: waynerobinson/xeroizer#280 .

@Schwad Schwad closed this as completed Aug 3, 2016
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

1 participant