Commit 189e2b6c authored by Michael Kozono's avatar Michael Kozono
Browse files

Clean up after test

parent 233dec0fb17d
......@@ -83,8 +83,14 @@
# E.g. The installation is in use at the time of migration, and someone has
# just uploaded a file
context 'when there are files in /uploads/tmp' do
let(:tmp_file) { Rails.root.join(described_class::UPLOAD_DIR, 'tmp', 'some_file.jpg') }
before do
FileUtils.touch(Rails.root.join(described_class::UPLOAD_DIR, 'tmp', 'some_file.jpg'))
after do
it 'does not add files from /uploads/tmp' do
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