summaryrefslogtreecommitdiff
path: root/spec/services/projects/import_service_spec.rb
diff options
context:
space:
mode:
authorJamie Schembri <jamie@schembri.me>2018-07-16 12:17:42 +0200
committerJamie Schembri <jamie@schembri.me>2018-07-16 12:17:54 +0200
commitd32802c76b37df936af5086e37bd93761c29799b (patch)
treed9ee6e02c20aeedad9ea16f78af36d95bec362bd /spec/services/projects/import_service_spec.rb
parent25af7197ba7357c5a3ca5a0052472a74490e6c63 (diff)
downloadgitlab-ce-d32802c76b37df936af5086e37bd93761c29799b.tar.gz
Fix #49272 - Sanitize git URL in import errors
Diffstat (limited to 'spec/services/projects/import_service_spec.rb')
-rw-r--r--spec/services/projects/import_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/projects/import_service_spec.rb b/spec/services/projects/import_service_spec.rb
index b3815045792..e2a600d12d1 100644
--- a/spec/services/projects/import_service_spec.rb
+++ b/spec/services/projects/import_service_spec.rb
@@ -69,7 +69,7 @@ describe Projects::ImportService do
result = subject.execute
expect(result[:status]).to eq :error
- expect(result[:message]).to eq "Error importing repository #{project.import_url} into #{project.full_path} - The repository could not be created."
+ expect(result[:message]).to eq "Error importing repository #{project.safe_import_url} into #{project.full_path} - The repository could not be created."
end
context 'when repository creation succeeds' do
@@ -141,7 +141,7 @@ describe Projects::ImportService do
result = subject.execute
expect(result[:status]).to eq :error
- expect(result[:message]).to eq "Error importing repository #{project.import_url} into #{project.full_path} - Failed to import the repository"
+ expect(result[:message]).to eq "Error importing repository #{project.safe_import_url} into #{project.full_path} - Failed to import the repository"
end
context 'when repository import scheduled' do