Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
Merge pull request jstorimer#68 from ScotterC/checking-tmp-files
Browse files Browse the repository at this point in the history
Test to make sure tmp files are getting cleared
  • Loading branch information
jrgifford committed Jan 1, 2014
2 parents 4661255 + 1cb52e2 commit 8348c95
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/delayed_paperclip/attachment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@

dummy.image_processing.should be_false
end

it "still flushes temp files" do
dummy.image = File.open("#{ROOT}/spec/fixtures/12k.png")
paths = dummy.image.queued_for_write.values.map(&:path)
dummy.image.after_flush_writes_with_processing
paths.none?{ |path| File.exists?(path) }.should be_true
end
end

describe "#save_with_prepare_enqueueing" do
Expand Down

0 comments on commit 8348c95

Please sign in to comment.