Did you run this test against live github? I don't think it will work two times. The first time it will create a repo, but then it will fail because such a repository already exists. I think this test should be more accurate. I think it should be more complicated. It should generate a random repository name first, then create it, then check that creation succeeded, and then drop the repo (http://developer.github.com/v3/repos/#delete-a-repository). You can easily move this logic out of scope of your ticket, using PDD (http://www.tpc2.com/dev/pdd)