I'm getting this error when running rspec on a spec file:
MYPATH/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419: stack level too deep (SystemStackError)
Here is the line it is called on:
require 'spec_helper'
r开发者_如何学编程equire 'factory_girl'
FactoryGirl.find_definitions
Here are my versions of relevant gems:
factory_girl 2.1.0
rails 3.0.10
rspec 2.6.0
try to remove line
FactoryGirl.find_definitions
or remove:
FactoryGirl.reload
This is what solved this issue for me
精彩评论