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
082cc122
Commit
082cc122
authored
Jan 09, 2019
by
Toon Claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failing spec with orphaned namespace
parent
d3e028b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/background_migration/backfill_project_repositories.rb
...lab/background_migration/backfill_project_repositories.rb
+1
-1
spec/lib/gitlab/background_migration/backfill_project_repositories_spec.rb
...ackground_migration/backfill_project_repositories_spec.rb
+1
-1
No files found.
lib/gitlab/background_migration/backfill_project_repositories.rb
View file @
082cc122
...
...
@@ -101,7 +101,7 @@ module Gitlab
# Route model
class
Route
<
ActiveRecord
::
Base
belongs_to
:source
,
inverse_of: :route
belongs_to
:source
,
inverse_of: :route
,
polymorphic:
true
end
# Namespace model
...
...
spec/lib/gitlab/background_migration/backfill_project_repositories_spec.rb
View file @
082cc122
...
...
@@ -95,7 +95,7 @@ describe Gitlab::BackgroundMigration::BackfillProjectRepositories do
project
.
route
.
destroy
subgroup
.
route
.
destroy
expect
{
project
.
disk_path
}
expect
{
project
.
reload
.
disk_path
}
.
to
raise_error
(
Gitlab
::
BackgroundMigration
::
BackfillProjectRepositories
::
OrphanedNamespaceError
)
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