summaryrefslogtreecommitdiff
path: root/spec/models/bulk_imports
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-02-25 15:11:34 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-02-25 15:11:34 +0000
commitc00ed910738a6db7db12fb9eb67ec318e6dabec5 (patch)
tree721f0abddce20b6b9fac54e9424a2bc2d46918ed /spec/models/bulk_imports
parentb2452a369250083ed416b90fe233583c64413877 (diff)
downloadgitlab-ce-c00ed910738a6db7db12fb9eb67ec318e6dabec5.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/bulk_imports')
-rw-r--r--spec/models/bulk_imports/entity_spec.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/models/bulk_imports/entity_spec.rb b/spec/models/bulk_imports/entity_spec.rb
index a3a22c386c9..17ab4d5954c 100644
--- a/spec/models/bulk_imports/entity_spec.rb
+++ b/spec/models/bulk_imports/entity_spec.rb
@@ -103,7 +103,9 @@ RSpec.describe BulkImports::Entity, type: :model do
)
expect(entity).not_to be_valid
- expect(entity.errors).to include(:destination_namespace)
+ expect(entity.errors).to include(:base)
+ expect(entity.errors[:base])
+ .to include('Import failed: Destination cannot be a subgroup of the source group. Change the destination and try again.')
end
it 'is invalid if destination namespace is a descendant of the source' do
@@ -118,7 +120,8 @@ RSpec.describe BulkImports::Entity, type: :model do
)
expect(entity).not_to be_valid
- expect(entity.errors).to include(:destination_namespace)
+ expect(entity.errors[:base])
+ .to include('Import failed: Destination cannot be a subgroup of the source group. Change the destination and try again.')
end
end
end