add user cant follow himself validation
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
FactoryBot.define do
|
||||
factory :user do
|
||||
username { Faker::Internet.username.gsub(/[^0-9a-z ]/i, '') }
|
||||
username {
|
||||
Faker::Internet.username[0..14]
|
||||
.gsub(/[^0-9a-z ]/i, '')
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user