Skip to content

Commit

Permalink
Add inactivity jobs to job manager, fixes #366
Browse files Browse the repository at this point in the history
  • Loading branch information
amaierhofer committed Jan 29, 2025
1 parent ccb482b commit 7f287aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/hitobito_pbs/wagon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ class Wagon < Rails::Engine
JobManager.wagon_jobs += [
AlumniInvitationsJob,
Event::ApprovalCleanupJob,
Event::CampReminderJob
Event::CampReminderJob,
Person::InactivityBlockJob,
Person::InactivityBlockWarningJob
]

### models
Expand Down
4 changes: 3 additions & 1 deletion spec/jobs/job_manager_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
end

it "knows about jobs of the wagon" do
expect(jobs).to have(3).items
expect(jobs).to have(5).items
end

%w[
AlumniInvitationsJob
Event::ApprovalCleanupJob
Event::CampReminderJob
Person::InactivityBlockJob
Person::InactivityBlockWarningJob
].each do |job_class|
it "has #{job_class} in the list of jobs" do
expect(jobs).to include(job_class)
Expand Down

0 comments on commit 7f287aa

Please sign in to comment.