diff --git a/spec/github-file-spec.coffee b/spec/github-file-spec.coffee index ac35605..414d464 100644 --- a/spec/github-file-spec.coffee +++ b/spec/github-file-spec.coffee @@ -1,6 +1,5 @@ GitHubFile = require '../lib/github-file' -Project = require 'project' -fsUtils = require 'fs-utils' +{fs} = require 'atom' path = require 'path' describe "GitHubFile", -> @@ -13,14 +12,14 @@ describe "GitHubFile", -> path.join(__dirname, "fixtures", "#{fixtureName}.git") setupWorkingDir = (fixtureName) -> - fsUtils.makeTree workingDirPath - fsUtils.move fixturePath(fixtureName), path.join(workingDirPath, '.git') + fs.makeTree workingDirPath + fs.move fixturePath(fixtureName), path.join(workingDirPath, '.git') subdirectoryPath = path.join(workingDirPath, 'some-dir') - fsUtils.makeTree subdirectoryPath + fs.makeTree subdirectoryPath filePath = path.join(subdirectoryPath, 'some-file.md') - fsUtils.writeSync filePath, 'some file content' + fs.writeSync filePath, 'some file content' setupGithubFile = -> project.setPath(workingDirPath) @@ -28,8 +27,8 @@ describe "GitHubFile", -> githubFile = GitHubFile.fromPath(editSession.getPath()) teardownWorkingDirAndRestoreFixture = (fixtureName) -> - fsUtils.move path.join(workingDirPath, '.git'), fixturePath(fixtureName) - fsUtils.remove workingDirPath + fs.move path.join(workingDirPath, '.git'), fixturePath(fixtureName) + fs.remove workingDirPath describe "open", -> describe "when the file is openable on GitHub.com", ->