Commit 082cc122 authored by Toon Claes's avatar Toon Claes

Fix failing spec with orphaned namespace

parent d3e028b8
...@@ -101,7 +101,7 @@ module Gitlab ...@@ -101,7 +101,7 @@ module Gitlab
# Route model # Route model
class Route < ActiveRecord::Base class Route < ActiveRecord::Base
belongs_to :source, inverse_of: :route belongs_to :source, inverse_of: :route, polymorphic: true
end end
# Namespace model # Namespace model
......
...@@ -95,7 +95,7 @@ describe Gitlab::BackgroundMigration::BackfillProjectRepositories do ...@@ -95,7 +95,7 @@ describe Gitlab::BackgroundMigration::BackfillProjectRepositories do
project.route.destroy project.route.destroy
subgroup.route.destroy subgroup.route.destroy
expect { project.disk_path } expect { project.reload.disk_path }
.to raise_error(Gitlab::BackgroundMigration::BackfillProjectRepositories::OrphanedNamespaceError) .to raise_error(Gitlab::BackgroundMigration::BackfillProjectRepositories::OrphanedNamespaceError)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment