Sha256: b13985597403130aca26778cd9a188006b8e4432174e5198d5f1bc48f66719f8
Contents?: true
Size: 452 Bytes
Versions: 16
Compression:
Stored size: 452 Bytes
Contents
require 'spec_helper' describe "cleaning up tempfiles" do let (:app) { test_app.configure{ processor :copy do |content| content.shell_update do |old_path, new_path| "cp #{old_path} #{new_path}" end end } } it "unlinks tempfiles on each request" do expect { uid = app.store("blug") url = app.fetch(uid).copy.url request(app, url) }.not_to increase_num_tempfiles end end
Version data entries
16 entries across 16 versions & 1 rubygems