Commit 1980b9c5 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'unify-object_storage_spec.rb' into 'master'

Unify object_storage_spec.rb with EE

See merge request gitlab-org/gitlab-ce!20069
parents 5bcf5de2 6037c17c
...@@ -191,6 +191,18 @@ describe ObjectStorage do ...@@ -191,6 +191,18 @@ describe ObjectStorage do
it "calls a cache path" do it "calls a cache path" do
expect { |b| uploader.use_file(&b) }.to yield_with_args(%r[tmp/cache]) expect { |b| uploader.use_file(&b) }.to yield_with_args(%r[tmp/cache])
end end
it "cleans up the cached file" do
cached_path = ''
uploader.use_file do |path|
cached_path = path
expect(File.exist?(cached_path)).to be_truthy
end
expect(File.exist?(cached_path)).to be_falsey
end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment