                 done()
 
           console.log('BEFORE: Resetting test repo')
+          trapFail(STATE[REPO].updateInfo({name: REPO_NAME, homepage: REPO_HOMEPAGE}))
           trapFail(STATE[REPO].getCommits())
           .done (findLastCommits)
 

          console.log('BEFORE: Creating test repo')
          options =
            description: 'Test Repository for https:/github.com/philschatz/octokit.js'
            homepage: 'https:/github.com/philschatz/octokit.js'
            # private: false
            # has_issues: false
            # has_wiki: false


                  helper1 done, STATE[REPO].isCollaborator(OTHER_USERNAME), (canCollaborate) ->
                    expect(canCollaborate).to.be.false

      describe 'Editing Repository:', () ->
        it 'initially the repository homepage should be [REPO_HOMEPAGE]', (done) ->
          helper1 done, STATE[REPO].getInfo(), (info) ->
            expect(info.homepage).to.equal(REPO_HOMEPAGE)

        it 'should be able to edit the repo homepage', (done) ->
          helper2 STATE[REPO].updateInfo({name: REPO_NAME, homepage: OTHER_HOMEPAGE}), ->

            helper1 done, STATE[REPO].getInfo(), (info) ->
              expect(info.homepage).to.equal(OTHER_HOMEPAGE)

        it 'changing the default branch should not explode', (done) ->
          helper1 done, STATE[REPO].setDefaultBranch(DEFAULT_BRANCH), (result) ->
            expect(result.default_branch).to.equal(DEFAULT_BRANCH)
        

      describe 'Events:', () ->
        itIsOk(REPO, 'getEvents')
