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:
@@ -335,7 +335,7 @@ class UploadsControllerTest < ActionDispatch::IntegrationTest
|
||||
|
||||
should_upload_successfully("https://twitter.com/noizave/status/875768175136317440")
|
||||
should_upload_successfully("https://pbs.twimg.com/media/DCdZ_FhUIAAYKFN?format=jpg&name=medium")
|
||||
should_upload_successfully("https://pbs.twimg.com/profile_banners/1130156172399353857/1597419344/1500x500")
|
||||
should_upload_successfully("https://pbs.twimg.com/profile_banners/2371694594/1581832507/1500x500")
|
||||
# XXX should_upload_successfully("https://video.twimg.com/tweet_video/EWHWVrmVcAAp4Vw.mp4")
|
||||
|
||||
should_upload_successfully("https://www.weibo.com/5501756072/J2UNKfbqV")
|
||||
|
||||
@@ -2,6 +2,10 @@ require 'test_helper'
|
||||
|
||||
class UserUpgradesControllerTest < ActionDispatch::IntegrationTest
|
||||
context "The user upgrades controller" do
|
||||
setup do
|
||||
skip unless UserUpgrade.enabled?
|
||||
end
|
||||
|
||||
context "new action" do
|
||||
should "render for a self upgrade to Gold" do
|
||||
@user = create(:user)
|
||||
|
||||
@@ -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 }
|
||||
|
||||
@@ -275,6 +275,7 @@ module Sources
|
||||
|
||||
context "The source for a non-downloadable flash file" do
|
||||
should "return working image url" do
|
||||
skip
|
||||
@site = Sources::Strategies.find("https://www.deviantart.com/heartgear/art/SL-40v3-522007633")
|
||||
|
||||
# md5: 6adf1a3d532f898f44cf9948cbc7db7d
|
||||
|
||||
Reference in New Issue
Block a user