Skip to content

Commit

Permalink
pull_request action "edited": changes - test
Browse files Browse the repository at this point in the history
  • Loading branch information
seregamorph committed Nov 19, 2020
1 parent ca365b1 commit 0feb520
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/org/kohsuke/github/GHEventPayloadTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ public void pull_request_edited_base() throws Exception {
assertThat(event.getPullRequest().getTitle(), is("REST-276 - easy-random"));
assertThat(event.getChanges().getBase().getRef().getFrom(), is("develop"));
assertThat(event.getChanges().getBase().getSha().getFrom(), is("4b0f3b9fd582b071652ccfccd10bfc8c143cff96"));
assertThat(event.getPullRequest().getBase().getRef(), is("4.3"));
assertThat(event.getPullRequest().getBody(), startsWith("**JIRA Ticket URL:**"));
assertThat(event.getChanges().getBody(), nullValue());
assertThat(event.getChanges().getTitle(), nullValue());
}

@Test
Expand All @@ -238,6 +238,7 @@ public void pull_request_edited_title() throws Exception {
assertThat(event.getChanges().getTitle().getFrom(), is("REST-276 - easy-random"));
assertThat(event.getPullRequest().getTitle(), is("REST-276 - easy-random 4.3.0"));
assertThat(event.getChanges().getBase(), nullValue());
assertThat(event.getPullRequest().getBase().getRef(), is("4.3"));
assertThat(event.getPullRequest().getBody(), startsWith("**JIRA Ticket URL:**"));
assertThat(event.getChanges().getBody(), nullValue());
}
Expand Down

0 comments on commit 0feb520

Please sign in to comment.