asciinema.org/spec/factories/users.rb

15 lines
366 B
Ruby
Raw Normal View History

2012-03-10 13:57:53 +00:00
# Read about factories at http://github.com/thoughtbot/factory_girl
FactoryGirl.define do
2014-02-12 19:51:01 +00:00
sequence(:username) { |n| "user#{n}" }
2012-03-10 13:57:53 +00:00
factory :user do
2014-02-12 19:51:01 +00:00
sequence(:username) { generate(:username) }
sequence(:email) { |n| "foo#{n}@bar.com" }
2012-03-10 13:57:53 +00:00
end
2014-10-05 16:25:49 +00:00
factory :unconfirmed_user, class: User do
sequence(:temporary_username) { generate(:username) }
end
2012-03-10 13:57:53 +00:00
end