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
0cbf3e5c
Commit
0cbf3e5c
authored
Dec 04, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used seed-fu in db/fixtures/test/01_plan.rb so that if seed-fu is broken, we'll catch it
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
a25df59e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
17 deletions
+2
-17
db/fixtures/test/01_admin.rb
db/fixtures/test/01_admin.rb
+0
-15
db/fixtures/test/01_plan.rb
db/fixtures/test/01_plan.rb
+2
-2
No files found.
db/fixtures/test/01_admin.rb
deleted
100644 → 0
View file @
a25df59e
require
'./spec/support/sidekiq'
Gitlab
::
Seeder
.
quiet
do
User
.
seed
do
|
s
|
s
.
id
=
1
s
.
name
=
'Administrator'
s
.
email
=
'admin@example.com'
s
.
notification_email
=
'admin@example.com'
s
.
username
=
'root'
s
.
password
=
'5iveL!fe'
s
.
admin
=
true
s
.
projects_limit
=
100
s
.
confirmed_at
=
DateTime
.
now
end
end
db/fixtures/test/01_plan.rb
View file @
0cbf3e5c
require
'./spec/support/sidekiq'
Plan
.
create!
(
name:
EE
::
Namespace
::
FREE_PLAN
,
Plan
.
seed
(
name:
EE
::
Namespace
::
FREE_PLAN
,
title:
EE
::
Namespace
::
FREE_PLAN
.
titleize
)
EE
::
Namespace
::
NAMESPACE_PLANS_TO_LICENSE_PLANS
.
each_key
do
|
plan
|
Plan
.
create!
(
name:
plan
,
title:
plan
.
titleize
)
Plan
.
seed
(
name:
plan
,
title:
plan
.
titleize
)
end
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