Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d7e3fadb
Commit
d7e3fadb
authored
Apr 04, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure we generate unique usernames otherwise validations fail
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
fa65b65b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
db/fixtures/development/18_abuse_reports.rb
db/fixtures/development/18_abuse_reports.rb
+2
-2
spec/requests/api/v3/members_spec.rb
spec/requests/api/v3/members_spec.rb
+1
-1
No files found.
db/fixtures/development/18_abuse_reports.rb
View file @
d7e3fadb
...
@@ -4,10 +4,10 @@ module Db
...
@@ -4,10 +4,10 @@ module Db
class
AbuseReport
class
AbuseReport
def
self
.
seed
def
self
.
seed
Gitlab
::
Seeder
.
quiet
do
Gitlab
::
Seeder
.
quiet
do
(
::
AbuseReport
.
default_per_page
+
3
).
times
do
(
::
AbuseReport
.
default_per_page
+
3
).
times
do
|
i
|
reported_user
=
reported_user
=
::
User
.
create!
(
::
User
.
create!
(
username:
"
#{
FFaker
::
Internet
.
user_name
}
-reported
"
,
username:
"
reported_user_
#{
i
}
"
,
name:
FFaker
::
Name
.
name
,
name:
FFaker
::
Name
.
name
,
email:
FFaker
::
Internet
.
email
,
email:
FFaker
::
Internet
.
email
,
confirmed_at:
DateTime
.
now
,
confirmed_at:
DateTime
.
now
,
...
...
spec/requests/api/v3/members_spec.rb
View file @
d7e3fadb
...
@@ -3,7 +3,7 @@ require 'spec_helper'
...
@@ -3,7 +3,7 @@ require 'spec_helper'
describe
API
::
V3
::
Members
,
api:
true
do
describe
API
::
V3
::
Members
,
api:
true
do
include
ApiHelpers
include
ApiHelpers
let
(
:master
)
{
create
(
:user
)
}
let
(
:master
)
{
create
(
:user
,
username:
'master_user'
)
}
let
(
:developer
)
{
create
(
:user
)
}
let
(
:developer
)
{
create
(
:user
)
}
let
(
:access_requester
)
{
create
(
:user
)
}
let
(
:access_requester
)
{
create
(
:user
)
}
let
(
:stranger
)
{
create
(
:user
)
}
let
(
:stranger
)
{
create
(
:user
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment