Build packages using paths instead of filenames

This commit is contained in:
Corey Johnson & Kevin Sawicki
2013-02-06 17:42:51 -08:00
parent bdac42b188
commit 3b4f07701b
6 changed files with 42 additions and 47 deletions

View File

@@ -13,7 +13,11 @@ describe "Snippets extension", ->
rootView = new RootView(require.resolve('fixtures/sample.js'))
spyOn(LoadSnippetsTask.prototype, 'start')
atom.loadPackage("package-with-snippets")
packageWithSnippets = atom.loadPackage("package-with-snippets")
spyOn(atom, "getLoadedPackages").andCallFake ->
window.textMatePackages.concat([packageWithSnippets])
atom.loadPackage("snippets")
editor = rootView.getActiveEditor()