开发者

rspec / factory girl causing SystemStackError in Rails 3

开发者 https://www.devze.com 2023-04-06 05:15 出处:网络
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)

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

0

精彩评论

暂无评论...
验证码 换一张
取 消