Fix point batch deletion spec

pull/915/head
Rick Carlino 2018-07-18 08:31:30 -05:00
parent a2772ef171
commit f41b2cc9f4
1 changed files with 2 additions and 2 deletions

View File

@ -68,9 +68,9 @@ describe Resources::Job do
end
.map do |params|
res = params[:resource]
count = res.count
count = res.where(discarded_at: nil).count
Resources::Job.run!(params)
expect(res.count).to eq(count - 1)
expect(res.where(discarded_at: nil).count).to eq(count - 1)
end
end
end