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

Nested models and RSpec #21

Closed
jweir opened this issue Jan 25, 2010 · 2 comments
Closed

Nested models and RSpec #21

jweir opened this issue Jan 25, 2010 · 2 comments

Comments

@jweir
Copy link

jweir commented Jan 25, 2010

Hello,

Spork is not reloading nested models which change.

For example

app/models/customer.rb
app/models/customer/subscriptions.rb

Both are loaded fine, but any changes to the files are not reflected. Is there work around? If not I can put together a sample demonstrating the issue.

My spec_helper.rb http://gist.github.com/286048

spork (0.7.5)
rspec (1.3.0)
rspec-rails (1.3.2)

Thanks - JW

@timcharper
Copy link
Contributor

something is probably triggering the load during preload.

run "spork -d" to find the culprit.

@jweir
Copy link
Author

jweir commented Jan 26, 2010

Thank you sir. factory_girl was the culprit.

Here is how I worked around the issue.
http://gist.github.com/287036

This issue was closed.
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