                 base = atom.config.get 'core.projectHome'
                 expect(fullPath).toEqual path.join(base, 'my-component')
 
-    describe "when modx-generator:scaffold-theme is triggered", ->
+    describe "when modx-revolution:scaffold-theme is triggered", ->
         it "displays a miniEditor with the correct text and selection", ->
             executeCommand ->
-                atom.commands.dispatch(workspaceElement, "modx-generator:scaffold-theme")
-                modxGeneratorView = $(workspaceElement).find(".modx-generator").view()
+                atom.commands.dispatch(workspaceElement, "modx-revolution:scaffold-theme")
+                modxGeneratorView = $(workspaceElement).find(".modx-revolution").view()
                 componentName = modxGeneratorView.miniEditor.getModel().getSelectedText()
                 expect(componentName).toEqual 'my-theme'
 

                expect(grammar).toBeTruthy()
                expect(grammar.scopeName).toBe "text.html.modx"

    describe "when modx-generator:scaffold-transport-package is triggered", ->
        it "displays a miniEditor with the correct text and selection", ->
            executeCommand ->
                atom.commands.dispatch(workspaceElement, "modx-generator:scaffold-transport-package")
                modxGeneratorView = $(workspaceElement).find(".modx-generator").view()
                componentName = modxGeneratorView.miniEditor.getModel().getSelectedText()
                expect(componentName).toEqual 'my-component'


        it "detaches from the DOM and focuses the the previously focused element", ->
            executeCommand ->
                jasmine.attachToDOM(workspaceElement)
                atom.commands.dispatch(workspaceElement, "modx-revolution:scaffold-transport-package")

                modxGeneratorView = $(workspaceElement).find(".modx-revolution").view()
                expect(modxGeneratorView.miniEditor.element).toBe document.activeElement

                atom.commands.dispatch(modxGeneratorView.element, "core:cancel")
