Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 438 Bytes
Factory.sequence :email do |n|
"user#{n}@example.com"
end
Factory.define :user do |user|
user.email { Factory.next :email }
user.password { "password" }
user.password_confirmation { "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
Jump to Line
Something went wrong with that request. Please try again.