GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
After upgrading to Rails 3.2.7 when I run rake spec I see:
/Users/sekrett/workspace/abvedanta/spec/support/database_cleaner.rb:1:in `': uninitialized constant DatabaseCleaner (NameError)
So I add two lines to spec_helper.rb to fix that:
almost every test fails with "Factory not registered". When I downgrade to 3.2.6, it works and I don't need to add the require lines. On 3.2.6 it works with and without require lines.
This was broken by a change in Rails which has now been fixed on Rails master and should be released as 3.2.8 sometime soon.
I didn't notice the breakage until recently as I prefer rspec spec, nevertheless this is pretty annoying as far as point releases go..
I am getting this in 3.2.13 again, weird.
Are you able to reproduce it with a new Rails 3.2.13 application? If so, definitely push it up to GitHub and link me to it. Thanks!
Not a new app, I upgraded from 3.2.11, and this problem was also in 3.2.11 I thought would be fixed in 3.2.13. I don't know why it starts happening, but it seems like it started after I upgraded my ruby to 2.0.0.