mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Delete test verifying that GitRepository.open works with file paths
With the upgrade of git-utils libgit2 was updated too and the behavior tested by the deleted spec doesn't seem to be supported anymore. However, we believe we can delete this test because the only entry point for creating `GitRepository` instances is `repositoryForDirectorySync` in `GitRepositoryProvider`, which only allows `Directory` objects to be supplied as its input arguments.
This commit is contained in:
@@ -31,11 +31,6 @@ describe "GitRepository", ->
|
||||
expect(-> new GitRepository(path.join(temp.dir, 'nogit.txt'))).toThrow()
|
||||
|
||||
describe ".getPath()", ->
|
||||
it "returns the repository path for a .git directory path with a file", ->
|
||||
return if process.platform is 'win32' #Win32TestFailures - libgit2 does not detect files in .git folders
|
||||
repo = new GitRepository(path.join(__dirname, 'fixtures', 'git', 'master.git', 'HEAD'))
|
||||
expect(repo.getPath()).toBe path.join(__dirname, 'fixtures', 'git', 'master.git')
|
||||
|
||||
it "returns the repository path for a .git directory path with a directory", ->
|
||||
repo = new GitRepository(path.join(__dirname, 'fixtures', 'git', 'master.git', 'objects'))
|
||||
expect(repo.getPath()).toBe path.join(__dirname, 'fixtures', 'git', 'master.git')
|
||||
|
||||
Reference in New Issue
Block a user