0
爲什麼下面放置在spec/factories.rb
給我出來把波紋管的錯誤:工廠女孩問題與創建
FactoryGirl.create :user do |f|
f.sequence(:email) { |n| "test#{n}@example.com" }
f.password "test"
end
錯誤:
`find': Factory not registered: user (ArgumentError)