@@ -52,16 +51,7 @@ describe Projects::ImportService do
...
@@ -52,16 +51,7 @@ describe Projects::ImportService do
result=subject.execute
result=subject.execute
expect(result[:status]).toeq:error
expect(result[:status]).toeq:error
expect(result[:message]).toeq"Error importing repository #{project.import_url} into #{project.full_path} - Failed to import the repository"
expect(result[:message]).toeq"Error importing repository #{project.import_url} into #{project.path_with_namespace} - The remote data could not be imported."
allow_any_instance_of(Github::Import).toreceive(:execute).and_raise(Projects::ImportService::Error.new('Github: failed to connect API'))
allow_any_instance_of(Gitlab::GithubImport::Importer).toreceive(:execute).and_raise(Projects::ImportService::Error.new('Github: failed to connect API'))
result=subject.execute
result=subject.execute
...
@@ -143,9 +127,9 @@ describe Projects::ImportService do
...
@@ -143,9 +127,9 @@ describe Projects::ImportService do