Respond to Stripe webhook with status of 204 if specified account is not found

This commit is contained in:
Rob Harrington
2017-09-22 17:32:31 +10:00
parent db5503dd80
commit e486dbd4f8
2 changed files with 4 additions and 4 deletions

View File

@@ -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