0
0
Fork 0

Add spec coverage for regeneration worker (#3143)

This commit is contained in:
Matt Jankowski 2017-05-19 10:55:09 -04:00 committed by Eugen Rochko
parent 3002a89419
commit d2e0edd721
2 changed files with 28 additions and 1 deletions

View file

@ -7,7 +7,8 @@ class RegenerationWorker
def perform(account_id, _ = :home)
account = Account.find(account_id)
PrecomputeFeedService.new.call(account)
rescue ActiveRecord::RecordNotFound
true
end
end