Comments (17)
Sounds like the rspec/autorun
problem? burke/zeus#180
spring rspec spec
works perfectly for me running Ruby 1.9.3, Rails 3.2.11, Rspec 2.12.0 and FactoryGirl 4.1.0.
from spring.
Even after removing rspec/autorun
I have the same errors....
But it is good to hear that the combination can run without problems... :-)
from spring.
We use without problems:
gem 'rails', '3.2.11'
gem 'rspec-rails', '2.11.0'
gem 'factory_girl_rails', '3.2'
Not tested with last version of rspec and factorygirl
from spring.
any progress on this one? We are running spring with factory_girl and rspec without any problems on multiple applications. I think the issue is directly related to your code. Can you post a sample app to reproduce?
from spring.
Please reopen if you have more info about this issue.
from spring.
I am also getting this issue using factory_girl (4.1.0). I think it has something to do with overriden factory girl associations not serializing properly.
from spring.
I'm having the exact same problem with factory_girl 4.2
from spring.
+1
from spring.
any updates on this?
from spring.
Fixed by adding Spring.after_fork{ FactoryGirl.reload }
to my config/spring.rb
.
Spring 0.0.10
FactoryGirl 4.1.0
Rails 3.2.14
Ruby 1.9.3
from spring.
Fixed by adding Spring.after_fork{ FactoryGirl.reload } to my config/spring.rb.
👍 works for me too. Thanks!
from spring.
@cainlevy this fix does not work on Factorygirl 4.2.0, but does work on 4.1.0
from spring.
Fixed by adding Spring.after_fork{ FactoryGirl.reload } to my config/spring.rb.
👍 Thanks!
from spring.
@Lordnibbler It worked for me...
FactoryGirl 4.2.0.
Spring 1.1.0
Rails 4.0.2
from spring.
Thanks @cainlevy ! 😄
from spring.
Nice :)
from spring.
This is fixed since version v4.4.1 of factory_girl_rails (Feb 2014) see thoughtbot/factory_bot_rails#121
from spring.
Related Issues (20)
- Environment variables changed by rails cannot be reloaded HOT 3
- Should a Puma server started from feature tests on Rails 6 fork from a Spring process? HOT 1
- Freebsd terminal detach minor problem
- Processes just hang with Spring 4.0 HOT 10
- 3.1.1 started breaking with getpid or cache_classes HOT 12
- NoMethodError when invoking `rails` command without arguments (undefined method `start_with?' for nil:NilClass)
- Unable to start rails console HOT 5
- `Bundler.with_original_env` vs `Bundler.with_unbundled_env` HOT 6
- Periodically auto restart HOT 5
- spring 4.0.0 bundles with rails < 6.0 HOT 1
- spring 4.0.0 gets hanged with rails 6.1 HOT 2
- Different exit code for SIGKILL'ed processes with Spring
- Bundler::GemNotFound when starting running `rails` commands when Gemfile has changed dependencies HOT 4
- `rails db:system:change` command fails via spring HOT 2
- Cut new gem to include latest fix to `digest` HOT 1
- Unable to Ctrl C out of errored rails console
- Server leaks memory HOT 2
- spring binstub modifier does not check for class presence HOT 1
- spring binstub causes Gem::LoadError after bundle update default gem with ext
- Mac forking error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring.