BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d7e3fadb
Unverified
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
18_abuse_reports.rb
db/fixtures/development/18_abuse_reports.rb
+2
-2
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
class
AbuseReport
def
self
.
seed
Gitlab
::
Seeder
.
quiet
do
(
::
AbuseReport
.
default_per_page
+
3
).
times
do
(
::
AbuseReport
.
default_per_page
+
3
).
times
do
|
i
|
reported_user
=
::
User
.
create!
(
username:
"
#{
FFaker
::
Internet
.
user_name
}
-reported
"
,
username:
"
reported_user_
#{
i
}
"
,
name:
FFaker
::
Name
.
name
,
email:
FFaker
::
Internet
.
email
,
confirmed_at:
DateTime
.
now
,
...
...
spec/requests/api/v3/members_spec.rb
View file @
d7e3fadb
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
describe
API
::
V3
::
Members
,
api:
true
do
include
ApiHelpers
let
(
:master
)
{
create
(
:user
)
}
let
(
:master
)
{
create
(
:user
,
username:
'master_user'
)
}
let
(
:developer
)
{
create
(
:user
)
}
let
(
:access_requester
)
{
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