         afterEach ->
           nock.cleanAll()
 
-        hubot 'phab T42 spite'
-        it 'reports the status as spite', ->
-          expect(hubotResponse()).to.eql 'Ok, T42 now has status Spite.'
-
-  context 'user changes status for a task', ->
+        context 'phab T42 spite', ->
+          hubot 'phab T42 spite'
+          it 'reports the status as spite', ->
+            expect(hubotResponse()).to.eql 'Ok, T42 now has status Spite.'
+
+  context 'user changes priority for a task', ->
     context 'when the task is unknown', ->
       beforeEach ->
         do nock.disableNetConnect

        afterEach ->
          nock.cleanAll()

        hubot 'phab T42 is open'
        it 'reports the status as open', ->
          expect(hubotResponse()).to.eql 'Ok, T42 now has status Open.'

      context 'phab T42 open', ->
        beforeEach ->


    context 'when the task is present', ->

      context 'phab open', ->
        beforeEach ->
          do nock.disableNetConnect
          nock(process.env.PHABRICATOR_URL)
          .get('/api/maniphest.info')
          .reply(200, { result: { 
            status: 'open',
            priority: 'Low',
            name: 'Test task',
            ownerPHID: 'PHID-USER-42'
            } })
          .get('/api/user.query')
          .reply(200, { result: [{ userName: 'toto' }]})
          .get('/api/maniphest.update')
          .reply(200, { result: { statusName: 'Open' } })

        afterEach ->
          nock.cleanAll()

        context 'phab is open', ->
          hubot 'phab T42', 'user_with_phid'
          hubot 'phab is open', 'user_with_phid'
          it 'reports the status as open', ->
            expect(hubotResponse()).to.eql 'Ok, T42 now has status Open.'

        context 'phab open', ->
          hubot 'phab T42', 'user_with_phid'
          hubot 'phab open', 'user_with_phid'
          it 'reports the status as open', ->
            expect(hubotResponse()).to.eql 'Ok, T42 now has status Open.'


      context 'phab T42 is open', ->
        beforeEach ->
          do nock.disableNetConnect
