從Github合併我的代碼後,我無法運行rpsec。FactoryGirl錯誤:rspec
我不斷收到FactoryGirl錯誤: uninitialized constant ControllerMacros::FactoryGirl
1) Question has a valid factory
Failure/Error: expect(FactoryGirl.build(:question)).to be_valid
NameError:
uninitialized constant FactoryGirl
# ./spec/models/question_spec.rb:14:in `block (2 levels) in '
請幫助。
合併後你運行了'bundle install'嗎? – hawk
是啊!試過了,但沒有成功。 – Disha