clarion/spec/factories/users.rb

15 lines
316 B
Ruby
Raw Normal View History

2014-07-28 14:15:08 +03:00
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
sequence(:email) { |n| "user-#{n}@example.org" }
factory :user do
first_name 'John'
last_name 'Doe'
password 'password'
password_confirmation 'password'
mobile_phone '0883444555'
email
end
end