tests: fix broken tests.

* Fix a broken Twitter profile image upload test.
* Skip a broken DeviantArt flash file upload test (flash no longer
  supported by DeviantArt?)
* Skip user upgrade tests when Stripe is not configured.
This commit is contained in:
evazion
2021-01-27 00:11:05 -06:00
parent 3137284292
commit 716cdb0126
4 changed files with 7 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ class WebhooksControllerTest < ActionDispatch::IntegrationTest
end
def post_webhook(*args, metadata: {}, payment_status: "paid")
skip unless UserUpgrade.enabled?
event = StripeMock.mock_webhook_event(*args, payment_status: payment_status, metadata: metadata)
signature = generate_stripe_signature(event)
headers = { "Stripe-Signature": signature }