user factory username over sequence

This commit is contained in:
Dmitriy Zaporozhets 2013-01-28 17:46:24 +02:00
parent 8b54b7233e
commit 9ad5fbb416
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ FactoryGirl.define do
factory :user, aliases: [:author, :assignee, :owner, :creator] do
email { Faker::Internet.email }
name
username { Faker::Internet.user_name }
sequence(:username) { |n| "#{Faker::Internet.user_name}#{n}" }
password "123456"
password_confirmation { password }