 
             simulate = (type, callback) ->
                 if type is 'transport-package'
-                    atom.commands.dispatch(workspaceElement, "modx-generator:scaffold-transport-package")
+                    atom.commands.dispatch(workspaceElement, "modx-revolution:scaffold-transport-package")
                 else
-                    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()
                 expect(modxGeneratorView.hasParent()).toBeTruthy()
                 modxGeneratorView.miniEditor.setText(componentPath)
                 modxExecute = spyOn(modxGeneratorView, 'initComponent').andCallFake (command, args, exit) ->

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

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

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

    [activationPromise, workspaceElement] = []

    executeCommand = (callback) ->
        atom.commands.dispatch(workspaceElement, 'modx-revolution:scaffold-transport-package')
        atom.commands.dispatch(workspaceElement, 'modx-revolution:scaffold-theme')
        waitsForPromise -> activationPromise
        runs(callback)

