diff --git a/spec/jobs/import_url_job_spec.rb b/spec/jobs/import_url_job_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/jobs/import_url_job_spec.rb
+++ b/spec/jobs/import_url_job_spec.rb
@@ -29,9 +29,18 @@ RSpec.describe ImportUrlJob do
   end
 
   context 'after running the job' do
+    let!(:tmpdir) { Rails.root.join("tmp/spec/#{Process.pid}") }
+
     before do
       file_set.id = 'abc123'
       allow(file_set).to receive(:reload)
+
+      FileUtils.mkdir_p(tmpdir)
+      allow(Dir).to receive(:mktmpdir).and_return(tmpdir)
+    end
+
+    after do
+      FileUtils.remove_entry(tmpdir)
     end
 
     it 'creates the content and updates the associated operation' do
@@ -39,6 +48,11 @@ RSpec.describe ImportUrlJob do
       described_class.perform_now(file_set, operation)
       expect(operation).to be_success
     end
+
+    it 'leaves the temp directory in place' do
+      described_class.perform_now(file_set, operation)
+      expect(File.exist?(File.join(tmpdir, file_hash))).to be true
+    end
   end
 
   context "when a batch update job is running too" do
Add test to make sure ImportUrlJob leaves its temp directory/file(s) in place.