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

Problems with class reloading if factory_girl is being used #10

Open
tobsch opened this issue Nov 9, 2010 · 2 comments
Open

Problems with class reloading if factory_girl is being used #10

tobsch opened this issue Nov 9, 2010 · 2 comments

Comments

@tobsch
Copy link

tobsch commented Nov 9, 2010

Hi there,

we had a problem with several models that weren't reloaded properly.
I just traced it down and it's the funny combination snailgun & factory_girl:

If you use factory_girl and load in in test_helper, all models are being loaded by snailgun because it manually requires test_helper.
If you disable loading test helper everything works fine.

Best,

Tobias

@candlerb
Copy link
Owner

candlerb commented Dec 3, 2010

If you can make a patch which fixes this, I'll commit it. I'm afraid I don't know what it would be about factory_girl which would cause test_helper to preload all models.

Is this a rails app? You do have config.cache_classes = false in config/environments/test.rb ?

@phoet
Copy link

phoet commented Mar 3, 2011

Any feedback on this?

I'm experiencing similar issue without using factory girl.

(Some) Models seem to not get reloaded while other Classes like Tests or Helpers.

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

3 participants