railstutorial.org - undefined method `Factory'

前端 未结 10 1427
时光取名叫无心
时光取名叫无心 2021-02-14 08:06

I\'m attempting to follow railstutorial.org, and am currently on Chapter 7, where you start using factories: http://railstutorial.org/chapters/modeling-and-viewing-users-two#sec

10条回答
  •  野的像风
    2021-02-14 08:24

    My solution: I've accidentally included it in the :development block, and simply had to move it to the :test block

    (I've listed it here, because it might help someone who doesn't follow the tutorial correctly)

提交回复
热议问题