Update to latest version of go-github (#157)

This commit is contained in:
Luke Kysow
2017-10-12 21:36:09 -07:00
committed by Anubhav Mishra
parent 6abe46c529
commit c777ba3067
14 changed files with 205 additions and 59 deletions

View File

@@ -275,3 +275,14 @@ func TestIssuesService_Unlock(t *testing.T) {
t.Errorf("Issues.Unlock returned error: %v", err)
}
}
func TestIsPullRequest(t *testing.T) {
i := new(Issue)
if i.IsPullRequest() == true {
t.Errorf("expected i.IsPullRequest (%v) to return false, got true", i)
}
i.PullRequestLinks = &PullRequestLinks{URL: String("http://example.com")}
if i.IsPullRequest() == false {
t.Errorf("expected i.IsPullRequest (%v) to return true, got false", i)
}
}