 GitHubFile = require '../lib/github-file'
-fsUtils = require 'fs-utils'
+{fs} = require 'atom-api'
 path = require 'path'
 
 describe "GitHubFile", ->

      path.join(__dirname, "fixtures", "#{fixtureName}.git")

    setupWorkingDir = (fixtureName) ->
      fsUtils.makeTree workingDirPath
      fsUtils.move fixturePath(fixtureName), path.join(workingDirPath, '.git')

      subdirectoryPath = path.join(workingDirPath, 'some-dir')
      fsUtils.makeTree subdirectoryPath

      filePath = path.join(subdirectoryPath, 'some-file.md')
      fsUtils.writeSync filePath, 'some file content'

    setupGithubFile = ->
      project.setPath(workingDirPath)

      githubFile = GitHubFile.fromPath(editSession.getPath())

    teardownWorkingDirAndRestoreFixture = (fixtureName) ->
      fs.move path.join(workingDirPath, '.git'), fixturePath(fixtureName)
      fs.remove workingDirPath

    describe "open", ->
      describe "when the file is openable on GitHub.com", ->
