diff --git a/command/issue_test.go b/command/issue_test.go index 414dc0cf7..f5f8854f2 100644 --- a/command/issue_test.go +++ b/command/issue_test.go @@ -243,9 +243,10 @@ func TestIssueView(t *testing.T) { eq(t, url, "https://github.com/OWNER/REPO/issues/123") } -func TestIssueViewWithHash(t *testing.T) { +func TestIssueView_numberArgWithHash(t *testing.T) { initBlankContext("OWNER/REPO", "master") http := initFakeHTTP() + http.StubRepoResponse("OWNER", "REPO") http.StubResponse(200, bytes.NewBufferString(` { "data": { "repository": { "hasIssuesEnabled": true, "issue": { diff --git a/command/pr_test.go b/command/pr_test.go index 58a872406..efa894802 100644 --- a/command/pr_test.go +++ b/command/pr_test.go @@ -475,6 +475,7 @@ func TestPRView_numberArg(t *testing.T) { func TestPRView_numberArgWithHash(t *testing.T) { initBlankContext("OWNER/REPO", "master") http := initFakeHTTP() + http.StubRepoResponse("OWNER", "REPO") http.StubResponse(200, bytes.NewBufferString(` { "data": { "repository": { "pullRequest": {