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
6792c4b5
Commit
6792c4b5
authored
Mar 04, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move EE-specific factories to their own files
parent
4d3896eb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
35 deletions
+39
-35
spec/factories.rb
spec/factories.rb
+0
-35
spec/factories/geo_nodes.rb
spec/factories/geo_nodes.rb
+11
-0
spec/factories/group_hooks.rb
spec/factories/group_hooks.rb
+5
-0
spec/factories/ldap_group_links.rb
spec/factories/ldap_group_links.rb
+8
-0
spec/factories/licenses.rb
spec/factories/licenses.rb
+15
-0
No files found.
spec/factories.rb
View file @
6792c4b5
...
...
@@ -161,10 +161,6 @@ FactoryGirl.define do
url
end
factory
:group_hook
do
url
end
factory
:project_snippet
do
project
author
...
...
@@ -220,13 +216,6 @@ FactoryGirl.define do
project
end
factory
:ldap_group_link
do
cn
'group1'
group_access
Gitlab
::
Access
::
GUEST
provider
'ldapmain'
group
end
factory
:identity
do
provider
'ldapmain'
extern_uid
'my-ldap-id'
...
...
@@ -238,28 +227,4 @@ FactoryGirl.define do
noteable
factory: :issue
reply_key
"0123456789abcdef"
*
2
end
factory
:gitlab_license
,
class:
"Gitlab::License"
do
starts_at
{
Date
.
today
-
1
.
month
}
expires_at
{
Date
.
today
+
11
.
months
}
licensee
do
{
"Name"
=>
FFaker
::
Name
.
name
}
end
notify_users_at
{
|
l
|
l
.
expires_at
}
notify_admins_at
{
|
l
|
l
.
expires_at
}
end
factory
:license
do
data
{
build
(
:gitlab_license
).
export
}
end
factory
:geo_node
do
host
{
Gitlab
.
config
.
gitlab
.
host
}
sequence
(
:port
)
{
|
n
|
n
}
trait
:primary
do
primary
true
port
{
Gitlab
.
config
.
gitlab
.
port
}
end
end
end
spec/factories/geo_nodes.rb
0 → 100644
View file @
6792c4b5
FactoryGirl
.
define
do
factory
:geo_node
do
host
{
Gitlab
.
config
.
gitlab
.
host
}
sequence
(
:port
)
{
|
n
|
n
}
trait
:primary
do
primary
true
port
{
Gitlab
.
config
.
gitlab
.
port
}
end
end
end
spec/factories/group_hooks.rb
0 → 100644
View file @
6792c4b5
FactoryGirl
.
define
do
factory
:group_hook
do
url
end
end
spec/factories/ldap_group_links.rb
0 → 100644
View file @
6792c4b5
FactoryGirl
.
define
do
factory
:ldap_group_link
do
cn
'group1'
group_access
Gitlab
::
Access
::
GUEST
provider
'ldapmain'
group
end
end
spec/factories/licenses.rb
0 → 100644
View file @
6792c4b5
FactoryGirl
.
define
do
factory
:gitlab_license
,
class:
"Gitlab::License"
do
starts_at
{
Date
.
today
-
1
.
month
}
expires_at
{
Date
.
today
+
11
.
months
}
licensee
do
{
"Name"
=>
FFaker
::
Name
.
name
}
end
notify_users_at
{
|
l
|
l
.
expires_at
}
notify_admins_at
{
|
l
|
l
.
expires_at
}
end
factory
:license
do
data
{
build
(
:gitlab_license
).
export
}
end
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