socialforge/spec/factories/users.rb

18 lines
345 B
Ruby
Raw Normal View History

2015-01-24 10:36:19 +08:00
FactoryGirl.define do
factory :user do
2015-05-15 13:39:26 +08:00
login "factoryuser"
2015-01-24 10:36:19 +08:00
mail "user@example.com"
2015-05-15 13:39:26 +08:00
password "foobar111"
password_confirmation "foobar111"
2015-01-24 10:36:19 +08:00
end
2015-05-18 17:26:50 +08:00
factory :student, class: User do
login "student"
mail "student@example.com"
password "foobar111"
password_confirmation "foobar111"
end
end