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