Delete users that haven't logged in for too long #705
Annotations
5 errors
spec/models/user_cleaner_spec.rb#L26
UserCleaner#inactive_users counts users without last_sign_in_at date as inactive
Failure/Error: expect(UserCleaner.new.inactive_users.count).to eq(1)
expected: 1
got: 13
(compared using ==)
|
spec/models/user_cleaner_spec.rb#L31
UserCleaner#inactive_users counts users with last_sign_in_at date older than threshold as inactive
Failure/Error: expect(UserCleaner.new.inactive_users.count).to eq(1)
expected: 1
got: 13
(compared using ==)
|
spec/models/user_cleaner_spec.rb#L36
UserCleaner#inactive_users does not count users with last_sign_in_at date younger than threshold as inactive
Failure/Error: expect(UserCleaner.new.inactive_users.count).to eq(0)
expected: 0
got: 12
(compared using ==)
|
spec/models/user_cleaner_spec.rb#L147
UserCleaner mails when setting a deletion date enqueues a deletion warning mail (40 days)
Failure/Error:
expect do
UserCleaner.new.set_deletion_date_for_inactive_users
end.to have_enqueued_mail(UserCleanerMailer, :pending_deletion_email)
.with(a_hash_including(args: [40]))
expected to enqueue UserCleanerMailer.pending_deletion_email exactly 1 time with [#<RSpec::Matchers::BuiltIn::Include:0x00007f1c134f1010 @expectedS=[{:args=>[40]}], @matcher_name=:a_hash_including>], but enqueued 0
|
|
This job failed
Loading