Commit 9ad5fbb4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

user factory username over sequence

parent 8b54b723
...@@ -12,7 +12,7 @@ FactoryGirl.define do ...@@ -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 }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment