user factory username over sequence
This commit is contained in:
parent
8b54b7233e
commit
9ad5fbb416
|
@ -12,7 +12,7 @@ FactoryGirl.define do
|
||||||
factory :user, aliases: [:author, :assignee, :owner, :creator] do
|
factory :user, aliases: [:author, :assignee, :owner, :creator] do
|
||||||
email { Faker::Internet.email }
|
email { Faker::Internet.email }
|
||||||
name
|
name
|
||||||
username { Faker::Internet.user_name }
|
sequence(:username) { |n| "#{Faker::Internet.user_name}#{n}" }
|
||||||
password "123456"
|
password "123456"
|
||||||
password_confirmation { password }
|
password_confirmation { password }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue