@@ -123,13 +123,14 @@ class PRServiceTests extends PullRequestService {
123
123
@ Test def canPostReview = {
124
124
val invalidUsers = " felixmulder" :: " smarter" :: Nil
125
125
val commit = Commit (" " , Author (Some (" smarter" )), Author (Some (" smarter" )), CommitInfo (" Added stuff" ))
126
- val res = withClient(sendInitialComment(2281 , invalidUsers, commit :: Nil , _))
126
+ val resBody =
127
+ withClient(sendInitialComment(2281 , invalidUsers, commit :: Nil , false )(_))
127
128
128
129
assert(
129
- res.body .contains(" We want to keep history" ) &&
130
- res.body .contains(" Could you folks please sign the CLA?" ) &&
131
- res.body .contains(" Have an awesome day!" ),
132
- s " Body of review was not as expected: \n ${res.body }"
130
+ resBody .contains(" We want to keep history" ) &&
131
+ resBody .contains(" Could you folks please sign the CLA?" ) &&
132
+ resBody .contains(" Have an awesome day!" ),
133
+ s " Body of review was not as expected: \n ${resBody }"
133
134
)
134
135
}
135
136
@@ -159,4 +160,9 @@ class PRServiceTests extends PullRequestService {
159
160
160
161
assert(respondToComment(issueComment).run.status.code == 200 )
161
162
}
163
+
164
+ @ Test def canGetContributors = {
165
+ val contributors = withClient(getContributors(_))
166
+ assert(contributors.contains(" felixmulder" ))
167
+ }
162
168
}
0 commit comments