clarion/spec/factories/users.rb

12 lines
244 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'
email
end
end