     # Wait for project's service consumers to be asynchronously added
     waits(1)
 
-  describe "when a repository-provider service is provided", ->
-    it "uses it to create repositories for any directories that need one", ->
-      projectPath = temp.mkdirSync('atom-project')
-      atom.project.setPaths([projectPath])
-      expect(atom.project.getRepositories()).toEqual [null]
-      expect(atom.project.repositoryProviders.length).toEqual 1
-
-      dummyRepository = {destroy: -> null}
-
-      atom.packages.serviceHub.provide("atom.repository-provider", "0.1.0", {
-        repositoryForDirectory: (directory) -> Promise.resolve(dummyRepository)
-        repositoryForDirectorySync: (directory) -> dummyRepository
-      })
-
-      repository = null
-
-      waitsFor "repository to be updated", ->
-        repository = atom.project.getRepositories()[0]
-
-      runs ->
-        expect(repository).toBe dummyRepository
-
-    it "does not create any new repositories if every directory has a repository", ->
-      repositories = atom.project.getRepositories()
-      expect(repositories.length).toEqual 1
-      [repository] = repositories
-      expect(repository).toBeTruthy()
-
-      # Register a new RepositoryProvider.
-      dummyRepository = destroy: ->
-      repositoryProvider =
-        repositoryForDirectory: (directory) -> Promise.resolve(dummyRepository)
-        repositoryForDirectorySync: (directory) -> dummyRepository
-      atom.packages.serviceHub.provide(
-        "atom.repository-provider", "0.1.0", repositoryProvider)
-
-      expect(atom.project.getRepositories()).toBe repositories
-
-    it "stops using it to create repositories when the service is removed", ->
-      atom.project.setPaths([])
-
-      disposable = atom.packages.serviceHub.provide("atom.repository-provider", "0.1.0", {
-        repositoryForDirectory: (directory) -> Promise.resolve(dummyRepository)
-        repositoryForDirectorySync: (directory) -> {destroy: -> null}
-      })
-
-      disposable.dispose()
-
-      atom.project.addPath(temp.mkdirSync('atom-project'))
-      expect(atom.project.getRepositories()).toEqual [null]
-
   describe "serialization", ->
     deserializedProject = null
 

      expect(notification.getDetail()).toBe 'SomeError'
      expect(notification.getMessage()).toContain '`resurrect`'
      expect(notification.getMessage()).toContain 'fixtures/dir/a'

  describe ".open(path)", ->
    [absolutePath, newBufferHandler] = []

      directories = atom.project.getDirectories()
      expect(directories.length).toBe 1
      expect(directories[0].getPath()).toBe path.normalize(nonLocalFsDirectory)

  describe ".addPath(path)", ->
    it "calls callbacks registered with ::onDidChangePaths", ->
