posts: fix expunging posts not removing image from iqdb.

`File.exists?(preview_file_path)` is always false because the file has
already been deleted by this point. Remove the check entirely.
This commit is contained in:
evazion
2017-06-14 20:07:38 -05:00
parent b27f98dc58
commit d84feaa4bb
3 changed files with 11 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ module IqdbTestHelper
service = mock_sqs_service.new
Post.stubs(:iqdb_sqs_service).returns(service)
Post.stubs(:iqdb_enabled?).returns(true)
Danbooru.config.stubs(:iqdbs_auth_key).returns("hunter2")
Danbooru.config.stubs(:iqdbs_server).returns("http://localhost:3004")