1
我正在研究將應用程序從rails 4.1更新到rails 5的錯誤。當我嘗試運行我的測試時,factory_girl linter抱怨說有些該工廠是無效的:factory_girl linter因爲ActionView :: Template :: Error而失敗
/Users/stephen/.rvm/gems/[email protected]/gems/factory_girl-4.7.0/lib/factory_girl/linter.rb:13:in `lint!': The following factories are invalid: (FactoryGirl::InvalidFactoryError)
* call_log - Undefined variable: "$green". (ActionView::Template::Error)
* sms_log - Undefined variable: "$green". (ActionView::Template::Error)
等
這是所有廠家的女孩真的讓我堆棧跟蹤。它告訴我在哪裏叫棉絨,但就是這樣。沒有跡象表明在視圖中可能發生的事情。有沒有辦法讓我確定這一點?似乎這將是非常困難的調試fi我不知道它來自哪裏。