A platform for community discussion. Free, open, simple.
DEV: Stop the hotlinked media spec depending on the host's free disk space (#45464)
David Taylorbec0547c4e7d
diff --git a/spec/integration/blocked_hotlinked_media_spec.rb b/spec/integration/blocked_hotlinked_media_spec.rbindex 6b1f47f4f7c..1fefcf696ba 100644--- a/spec/integration/blocked_hotlinked_media_spec.rb+++ b/spec/integration/blocked_hotlinked_media_spec.rb@@ -181,6 +181,7 @@ RSpec.describe "hotlinked media blocking" dobefore doSiteSetting.block_hotlinked_media = trueSiteSetting.download_remote_images_to_local = true+ Jobs::PullHotlinkedImages.any_instance.stubs(:available_disk_space).returns(100)Oneboxer.stubs(:onebox).returns("<aside class='onebox'><img src='#{hotlinked_url}'></aside>")Jobs.run_immediately!end