clarion/spec/factories/users.rb
Petko Bordjukov e8476a2623 Add a time of confirmation to the User factory
Make all users from the factory confirmed by default in an effor to save
some time and work.
2014-11-22 19:29:58 +02:00

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