demarches-normaliennes/spec/factories/gestionnaire.rb

7 lines
186 B
Ruby
Raw Normal View History

2015-09-22 10:15:12 +02:00
FactoryGirl.define do
sequence(:gestionnaire_email) { |n| "plop#{n}@plop.com" }
factory :gestionnaire do
email { generate(:gestionnaire_email) }
password 'password'
end
end