为什么下面的内容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)
为什么下面的内容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)