collab/test/factories/clearance.rb

14 lines
339 B
Ruby
Raw Normal View History

2010-03-05 06:48:00 +00:00
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.email_confirmed { true }
end