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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
d0315d53
Commit
d0315d53
authored
Jan 24, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factories with a project association use `:empty_project` by default
parent
d5583912
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
15 additions
and
14 deletions
+15
-14
spec/factories/deploy_keys_projects.rb
spec/factories/deploy_keys_projects.rb
+1
-1
spec/factories/events.rb
spec/factories/events.rb
+1
-1
spec/factories/file_uploader.rb
spec/factories/file_uploader.rb
+1
-1
spec/factories/issues.rb
spec/factories/issues.rb
+1
-1
spec/factories/labels.rb
spec/factories/labels.rb
+1
-1
spec/factories/milestones.rb
spec/factories/milestones.rb
+1
-1
spec/factories/notes.rb
spec/factories/notes.rb
+2
-1
spec/factories/project_group_links.rb
spec/factories/project_group_links.rb
+1
-1
spec/factories/project_members.rb
spec/factories/project_members.rb
+1
-1
spec/factories/project_snippets.rb
spec/factories/project_snippets.rb
+1
-1
spec/factories/releases.rb
spec/factories/releases.rb
+1
-1
spec/factories/sent_notifications.rb
spec/factories/sent_notifications.rb
+1
-1
spec/factories/services.rb
spec/factories/services.rb
+1
-1
spec/factories/todos.rb
spec/factories/todos.rb
+1
-1
No files found.
spec/factories/deploy_keys_projects.rb
View file @
d0315d53
FactoryGirl
.
define
do
factory
:deploy_keys_project
do
deploy_key
project
project
factory: :empty_project
end
end
spec/factories/events.rb
View file @
d0315d53
FactoryGirl
.
define
do
factory
:event
do
project
project
factory: :empty_project
author
factory: :user
factory
:closed_issue_event
do
...
...
spec/factories/file_uploader.rb
View file @
d0315d53
FactoryGirl
.
define
do
factory
:file_uploader
do
project
project
factory: :empty_project
secret
nil
transient
do
...
...
spec/factories/issues.rb
View file @
d0315d53
...
...
@@ -6,7 +6,7 @@ FactoryGirl.define do
factory
:issue
do
title
author
project
project
factory: :empty_project
trait
:confidential
do
confidential
true
...
...
spec/factories/labels.rb
View file @
d0315d53
...
...
@@ -2,7 +2,7 @@ FactoryGirl.define do
factory
:label
,
class:
ProjectLabel
do
sequence
(
:title
)
{
|
n
|
"label
#{
n
}
"
}
color
"#990000"
project
project
factory: :empty_project
transient
do
priority
nil
...
...
spec/factories/milestones.rb
View file @
d0315d53
FactoryGirl
.
define
do
factory
:milestone
do
title
project
project
factory: :empty_project
trait
:active
do
state
"active"
...
...
spec/factories/notes.rb
View file @
d0315d53
...
...
@@ -4,7 +4,7 @@ include ActionDispatch::TestProcess
FactoryGirl
.
define
do
factory
:note
do
project
project
factory: :empty_project
note
"Note"
author
on_issue
...
...
@@ -36,6 +36,7 @@ FactoryGirl.define do
end
factory
:diff_note_on_commit
,
traits:
[
:on_commit
],
class:
DiffNote
do
association
:project
,
:repository
position
do
Gitlab
::
Diff
::
Position
.
new
(
old_path:
"files/ruby/popen.rb"
,
...
...
spec/factories/project_group_links.rb
View file @
d0315d53
FactoryGirl
.
define
do
factory
:project_group_link
do
project
project
factory: :empty_project
group
end
end
spec/factories/project_members.rb
View file @
d0315d53
FactoryGirl
.
define
do
factory
:project_member
do
user
project
project
factory: :empty_project
master
trait
(
:guest
)
{
access_level
ProjectMember
::
GUEST
}
...
...
spec/factories/project_snippets.rb
View file @
d0315d53
FactoryGirl
.
define
do
factory
:project_snippet
,
parent: :snippet
,
class: :ProjectSnippet
do
project
project
factory: :empty_project
end
end
spec/factories/releases.rb
View file @
d0315d53
...
...
@@ -2,6 +2,6 @@ FactoryGirl.define do
factory
:release
do
tag
"v1.1.0"
description
"Awesome release"
project
project
factory: :empty_project
end
end
spec/factories/sent_notifications.rb
View file @
d0315d53
FactoryGirl
.
define
do
factory
:sent_notification
do
project
project
factory: :empty_project
recipient
factory: :user
noteable
factory: :issue
reply_key
"0123456789abcdef"
*
2
...
...
spec/factories/services.rb
View file @
d0315d53
FactoryGirl
.
define
do
factory
:service
do
project
project
factory: :empty_project
end
end
spec/factories/todos.rb
View file @
d0315d53
FactoryGirl
.
define
do
factory
:todo
do
project
project
factory: :empty_project
author
user
target
factory: :issue
...
...
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