Delete users that haven't logged in for too long #703
tests.yml
on: pull_request
Unit tests
5m 3s
e2e (Cypress)
5m 1s
Annotations
5 errors
Unit tests:
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 ==)
|
Unit tests:
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 ==)
|
Unit tests:
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 ==)
|
Unit tests:
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:0x00007ff26bfba5d0 @expectedS=[{:args=>[40]}], @matcher_name=:a_hash_including>], but enqueued 0
|
Unit tests
Process completed with exit code 1.
|