添加预构件生产测试数据

This commit is contained in:
zhuhao 2015-01-24 10:36:19 +08:00
parent ca17058750
commit a38b3c89fe
1 changed files with 10 additions and 0 deletions

10
spec/factories/users.rb Normal file
View File

@ -0,0 +1,10 @@
require 'faker'
FactoryGirl.define do
factory :user do
login "ExampleUser"
mail "user@example.com"
password "foobar"
password_confirmation "foobar"
end
end