Use relative path for atom-package require

This commit is contained in:
Kevin Sawicki
2013-09-18 16:01:15 -07:00
parent 7c31710a5d
commit c2d5cd9b55

View File

@@ -94,7 +94,7 @@ describe "the `atom` global", ->
beforeEach ->
mainModule = require './fixtures/packages/package-with-activation-events/index'
spyOn(mainModule, 'activate').andCallThrough()
AtomPackage = require 'atom-package'
AtomPackage = require '../src/atom-package'
spyOn(AtomPackage.prototype, 'requireMainModule').andCallThrough()
pack = atom.activatePackage('package-with-activation-events')