Skip to content

Commit 0feb520

Browse files
committed
pull_request action "edited": changes - test
1 parent ca365b1 commit 0feb520

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/org/kohsuke/github/GHEventPayloadTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ public void pull_request_edited_base() throws Exception {
224224
assertThat(event.getPullRequest().getTitle(), is("REST-276 - easy-random"));
225225
assertThat(event.getChanges().getBase().getRef().getFrom(), is("develop"));
226226
assertThat(event.getChanges().getBase().getSha().getFrom(), is("4b0f3b9fd582b071652ccfccd10bfc8c143cff96"));
227+
assertThat(event.getPullRequest().getBase().getRef(), is("4.3"));
227228
assertThat(event.getPullRequest().getBody(), startsWith("**JIRA Ticket URL:**"));
228229
assertThat(event.getChanges().getBody(), nullValue());
229-
assertThat(event.getChanges().getTitle(), nullValue());
230230
}
231231

232232
@Test
@@ -238,6 +238,7 @@ public void pull_request_edited_title() throws Exception {
238238
assertThat(event.getChanges().getTitle().getFrom(), is("REST-276 - easy-random"));
239239
assertThat(event.getPullRequest().getTitle(), is("REST-276 - easy-random 4.3.0"));
240240
assertThat(event.getChanges().getBase(), nullValue());
241+
assertThat(event.getPullRequest().getBase().getRef(), is("4.3"));
241242
assertThat(event.getPullRequest().getBody(), startsWith("**JIRA Ticket URL:**"));
242243
assertThat(event.getChanges().getBody(), nullValue());
243244
}

0 commit comments

Comments
 (0)