-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
removed factories_spec.rb and anywhere it was being used. #259
Conversation
…y to run a rake task. The error message was unintialized constant JSON::Parser.
Cross-commented from #260: The factory specs running first (thought they add a lot of overhead, which I'm trying to minimize here) is really nice. Despite them never having saved @croaky's butt, they have mine - at least insofar as them running and fast-failing have saved me from trying to figure out why half a test suite is failing. It's nice to have the single failure up front. |
Ok thanks for the update caleb, should I close this pull request? |
I haven't gotten any use out of
|
I agree with Joe's eloquent explanation. |
Agreed, except in the case of a feature spec, where the message is just confusing. |
Does Spring (which is in Suspenders) solve this?
Are these alternatives or complements?
How about including them in Factory Girl? |
I feel @calebthompson's opinion on this is more valid than mine as he's been working on Rails apps at least 32 hours/week and I'm more like in the single digits. I'm inclined to merge #260 and see if we can make further changes like including this ability in Factory Girl to reduce files in Suspenders. |
Yeah, that could be an interesting factory_girl feature. Something like: FactoryGirl.lint If we run this before specs run (ie included in |
I like this.
I know that by virtue of being in the same rake task, the Rails environment doesn't need to be reloaded, which is Spring's benefit. I'm not sure of the overhead of the test environment itself being reloaded, but doubt that Spring effects them.
Right, but we randomize the order so there's no guarantee that the fast-failure will be informative. I'm all for looking into adding better test support to factory_girl. @joshuaclayton? |
|
Can I close this pull request now as thoughtbot/factory_bot#609 solves this issue |
@Adam89 I think we still want to figure out a way to run |
To update this ticket, |
Cool that means I can close this pull request right? |
Yeah, thanks @Adam89 |
This is a possible fix for Issue #155