@@ -136,12 +136,12 @@ describe Projects::ImportService do
...
@@ -136,12 +136,12 @@ describe Projects::ImportService do
end
end
it'fails if repository import fails'do
it'fails if repository import fails'do
expect_any_instance_of(Gitlab::Shell).toreceive(:import_repository).and_raise(Gitlab::Shell::Error.new('Failed to import the repository'))
expect_any_instance_of(Gitlab::Shell).toreceive(:import_repository).and_raise(Gitlab::Shell::Error.new('Failed to import the repository /a/b/c'))
result=subject.execute
result=subject.execute
expect(result[:status]).toeq:error
expect(result[:status]).toeq:error
expect(result[:message]).toeq"Error importing repository #{project.safe_import_url} into #{project.full_path} - Failed to import the repository"
expect(result[:message]).toeq"Error importing repository #{project.safe_import_url} into #{project.full_path} - Failed to import the repository [FILTERED]"