mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-23 05:28:53 +00:00
Respond to Stripe webhook with status of 204 if specified account is not found
This commit is contained in:
@@ -117,7 +117,7 @@ describe Admin::StripeAccountsController, type: :controller do
|
||||
|
||||
it "does nothing" do
|
||||
post 'deauthorize', params
|
||||
expect(response.status).to eq 400
|
||||
expect(response.status).to eq 204
|
||||
expect(StripeAccount.all).to include stripe_account
|
||||
end
|
||||
end
|
||||
@@ -129,7 +129,7 @@ describe Admin::StripeAccountsController, type: :controller do
|
||||
|
||||
it "does nothing" do
|
||||
post 'deauthorize', params
|
||||
expect(response.status).to eq 400
|
||||
expect(response.status).to eq 204
|
||||
expect(StripeAccount.all).to include stripe_account
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user