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

Version Path
dragonfly-1.4.1 spec/functional/cleanup_spec.rb
dragonfly-1.4.0 spec/functional/cleanup_spec.rb
dragonfly-1.3.0 spec/functional/cleanup_spec.rb
dragonfly-1.2.1 spec/functional/cleanup_spec.rb
dragonfly-1.2.0 spec/functional/cleanup_spec.rb
dragonfly-1.1.5 spec/functional/cleanup_spec.rb
dragonfly-1.1.4 spec/functional/cleanup_spec.rb
dragonfly-1.1.3 spec/functional/cleanup_spec.rb
dragonfly-1.1.2 spec/functional/cleanup_spec.rb
dragonfly-1.1.1 spec/functional/cleanup_spec.rb
dragonfly-1.1.0 spec/functional/cleanup_spec.rb
dragonfly-1.0.12 spec/functional/cleanup_spec.rb
dragonfly-1.0.11 spec/functional/cleanup_spec.rb
dragonfly-1.0.10 spec/functional/cleanup_spec.rb
dragonfly-1.0.9 spec/functional/cleanup_spec.rb
dragonfly-1.0.8 spec/functional/cleanup_spec.rb