Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 12 lines (10 sloc) 0.368 kb
1 2 3 4 5 6 7 8 9 10 11 12
Factory.sequence :email do |n|
  "user#{n}@example.com"
end

Factory.define :user do |user|
  user.email { Factory.next :email }
  user.password { "password" }
end

Factory.define :email_confirmed_user, :parent => :user do |user|
  user.after_build { warn "[DEPRECATION] The :email_confirmed_user factory is deprecated, please use the :user factory instead." }
end
Something went wrong with that request. Please try again.