e8476a2623
Make all users from the factory confirmed by default in an effor to save some time and work.
13 lines
283 B
Ruby
13 lines
283 B
Ruby
# Read about factories at https://github.com/thoughtbot/factory_girl
|
|
|
|
FactoryGirl.define do
|
|
sequence(:email) { |n| "user-#{n}@example.org" }
|
|
|
|
factory :user do
|
|
password 'password'
|
|
password_confirmation 'password'
|
|
confirmed_at Time.now - 15.minutes
|
|
email
|
|
end
|
|
end
|