Skip to content

A platform for community discussion. Free, open, simple.

DEV: Run pull_hotlinked_images onebox specs without synchronous jobs

David Taylorbb3f8e32e5a1
diff --git a/spec/jobs/pull_hotlinked_images_spec.rb b/spec/jobs/pull_hotlinked_images_spec.rb
index 2450b7b9565..ee74fba3dea 100644
--- a/spec/jobs/pull_hotlinked_images_spec.rb
+++ b/spec/jobs/pull_hotlinked_images_spec.rb
@@ -72,6 +72,7 @@ describe Jobs::PullHotlinkedImages do
let(:api_url) { "https://en.wikipedia.org/w/api.php?action=query&titles=#{media}&prop=imageinfo&iilimit=50&iiprop=timestamp|user|url&iiurlwidth=500&format=json" }
before do
+ Jobs.run_later!
stub_request(:head, url)
stub_request(:get, url).to_return(body: '')
stub_request(:get, api_url).to_return(body: "{