further optimize spec

This commit is contained in:
Arpit Jalan 2018-04-25 11:08:38 +05:30
parent 0e38481d6d
commit 65be3c627d
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ describe Jobs::ExportCsvFile do
))
expect(user.topics_allowed.last.first_post.raw).to include("user-archive-john_doe-")
ensure
user.uploads.find_each { |upload| upload.destroy }
user.uploads.find_each { |upload| upload.destroy! }
end
end
end