expect_any_instance_of(Gitlab::Shell).toreceive(:import_repository).with(project.repository_storage_path,project.path_with_namespace,project.import_url).and_raise(Gitlab::Shell::Error.new('Failed to import the repository'))
expect_any_instance_of(Gitlab::Shell).toreceive(:import_repository).with(project.repository_storage_path,project.path_with_namespace,project.import_url).and_raise(Gitlab::Shell::Error.new('Failed to import the repository'))