       expect(text).toEqual('Boom')
 
     it 'navigates back to the trace on a click', ->
-      promise = view.backToTrace()
-
-      waitsForPromise -> promise
+      waitsForPromise -> view.backToTrace()
 
       runs ->
-        expect(atom.workspaceView.getActiveView().hasClass '.stacktrace.traceview').toBeTruthy()
+        expect(atom.workspaceView.getActiveView().hasClass 'traceview').toBeTruthy()
 
     it 'deactivates the trace', ->
       view.deactivateTrace()

  describe 'with an active stacktrace', ->

    beforeEach ->
      trace.activate()

    it 'should be visible', ->


  afterEach ->
    Stacktrace.getActivated()?.deactivate()
    Stacktrace.clearRegistry()

  it 'attaches itself to the workspace', ->
    expect(view).not.toBeNull()
