Commit 9ad5fbb416b00bf87c5f5ab3e1ee7ac5d5378b64
1 parent
8b54b723
Exists in
master
and in
4 other branches
user factory username over sequence
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
spec/factories.rb
@@ -12,7 +12,7 @@ FactoryGirl.define do | @@ -12,7 +12,7 @@ FactoryGirl.define do | ||
12 | factory :user, aliases: [:author, :assignee, :owner, :creator] do | 12 | factory :user, aliases: [:author, :assignee, :owner, :creator] do |
13 | email { Faker::Internet.email } | 13 | email { Faker::Internet.email } |
14 | name | 14 | name |
15 | - username { Faker::Internet.user_name } | 15 | + sequence(:username) { |n| "#{Faker::Internet.user_name}#{n}" } |
16 | password "123456" | 16 | password "123456" |
17 | password_confirmation { password } | 17 | password_confirmation { password } |
18 | 18 |