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
8d2fa510
Commit
8d2fa510
authored
Nov 07, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicated factory for Geo::RepositoryRenamedEvent
parent
77683e47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
spec/factories/geo/event_log.rb
spec/factories/geo/event_log.rb
+2
-15
No files found.
spec/factories/geo/event_log.rb
View file @
8d2fa510
...
@@ -13,7 +13,7 @@ FactoryGirl.define do
...
@@ -13,7 +13,7 @@ FactoryGirl.define do
end
end
trait
:renamed_event
do
trait
:renamed_event
do
repository_renamed_event
factory: :geo_repository_rename_event
repository_renamed_event
factory: :geo_repository_rename
d
_event
end
end
end
end
...
@@ -44,24 +44,11 @@ FactoryGirl.define do
...
@@ -44,24 +44,11 @@ FactoryGirl.define do
deleted_project_name
{
project
.
name
}
deleted_project_name
{
project
.
name
}
end
end
factory
:geo_repository_renamed_event
,
class:
Geo
::
RepositoryRenamedEvent
do
project
repository_storage_name
{
project
.
repository_storage
}
repository_storage_path
{
project
.
repository_storage_path
}
old_path_with_namespace
{
project
.
full_path
}
new_path_with_namespace
{
project
.
full_path
}
old_wiki_path_with_namespace
{
project
.
wiki
.
path_with_namespace
}
new_wiki_path_with_namespace
{
project
.
wiki
.
path_with_namespace
}
old_path
{
project
.
path
}
new_path
{
project
.
path
}
end
factory
:geo_repositories_changed_event
,
class:
Geo
::
RepositoriesChangedEvent
do
factory
:geo_repositories_changed_event
,
class:
Geo
::
RepositoriesChangedEvent
do
geo_node
geo_node
end
end
factory
:geo_repository_rename_event
,
class:
Geo
::
RepositoryRenamedEvent
do
factory
:geo_repository_rename
d
_event
,
class:
Geo
::
RepositoryRenamedEvent
do
project
{
create
(
:project
,
:repository
)
}
project
{
create
(
:project
,
:repository
)
}
repository_storage_name
{
project
.
repository_storage
}
repository_storage_name
{
project
.
repository_storage
}
...
...
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