Skip to content

Commit e878e16

Browse files
committed
fix broken tests
1 parent 97e86bc commit e878e16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/algora_web/controllers/webhooks/github_controller_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ defmodule AlgoraWeb.Webhooks.GithubControllerTest do
195195
assert {:ok, _comment} = perform_job(NotifyTipIntent, job.args)
196196

197197
assert job.args["body"] =~
198-
"Please visit [Algora](#{AlgoraWeb.Endpoint.url()}/tip?amount=100&recipient=jsmith&owner=#{ctx[:org].provider_login}&repo=#{ctx[:repository].name}&number=#{issue_number}) to complete your tip via Stripe."
198+
"Please visit [Algora](#{AlgoraWeb.Endpoint.url()}/tip?amount=100&recipient=jsmith&owner=#{ctx[:org].provider_login}&repo=#{ctx[:repository].name}&number=#{issue_number}&org_id=#{ctx[:installation].connected_user_id}) to complete your tip via Stripe."
199199
end
200200

201201
test "generates tip payment link when recipient and amount are provided in reverse order", ctx do
@@ -214,7 +214,7 @@ defmodule AlgoraWeb.Webhooks.GithubControllerTest do
214214
assert {:ok, _comment} = perform_job(NotifyTipIntent, job.args)
215215

216216
assert job.args["body"] =~
217-
"Please visit [Algora](#{AlgoraWeb.Endpoint.url()}/tip?amount=100&recipient=jsmith&owner=#{ctx[:org].provider_login}&repo=#{ctx[:repository].name}&number=#{issue_number}) to complete your tip via Stripe."
217+
"Please visit [Algora](#{AlgoraWeb.Endpoint.url()}/tip?amount=100&recipient=jsmith&owner=#{ctx[:org].provider_login}&repo=#{ctx[:repository].name}&number=#{issue_number}&org_id=#{ctx[:installation].connected_user_id}) to complete your tip via Stripe."
218218
end
219219

220220
test "generates tip payment link when amount is provided and recipient is inferred from issue", ctx do
@@ -233,7 +233,7 @@ defmodule AlgoraWeb.Webhooks.GithubControllerTest do
233233
assert {:ok, _comment} = perform_job(NotifyTipIntent, job.args)
234234

235235
assert job.args["body"] =~
236-
"Please visit [Algora](#{AlgoraWeb.Endpoint.url()}/tip?amount=100&recipient=jsmith&owner=#{ctx[:org].provider_login}&repo=#{ctx[:repository].name}&number=#{issue_number}) to complete your tip via Stripe."
236+
"Please visit [Algora](#{AlgoraWeb.Endpoint.url()}/tip?amount=100&recipient=jsmith&owner=#{ctx[:org].provider_login}&repo=#{ctx[:repository].name}&number=#{issue_number}&org_id=#{ctx[:installation].connected_user_id}) to complete your tip via Stripe."
237237
end
238238

239239
test "prompts for recipient when attempting to tip issue author who is the tipper", ctx do

0 commit comments

Comments
 (0)