Skip to content

Commit

Permalink
Use default async job queue
Browse files Browse the repository at this point in the history
  • Loading branch information
redsummernight committed Feb 5, 2025
1 parent 6f305af commit 6a39395
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@
# Use a different cache store in production.
# config.cache_store = :mem_cache_store

# Use a real queuing backend for Active Job (and separate queues per environment).
# config.active_job.queue_adapter = :resque
# config.active_job.queue_name_prefix = "otwarchive_production"

config.action_mailer.perform_caching = false

# Ignore bad email addresses and do not raise email delivery errors.
Expand Down
3 changes: 0 additions & 3 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test

# Inline ActiveJob when testing:
config.active_job.queue_adapter = :inline

# Print deprecation notices to the stderr.
config.active_support.deprecation = :stderr

Expand Down
2 changes: 0 additions & 2 deletions spec/lib/tasks/notifications.rake_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
let!(:user) { create(:user) }

it "enqueues one tos update notifications" do
ActiveJob::Base.queue_adapter = :test
expect(User.all.size).to eq(1)
expect { subject.invoke(admin_post.id) }
.to have_enqueued_mail(TosUpdateMailer, :tos_update_notification).on_queue(:tos_update).with(user, admin_post.id)
Expand All @@ -18,7 +17,6 @@
before { create_list(:user, 10) }

it "enqueues multiple tos update notifications" do
ActiveJob::Base.queue_adapter = :test
expect(User.all.size).to eq(10)
expect { subject.invoke(admin_post.id) }
.to have_enqueued_mail(TosUpdateMailer, :tos_update_notification).on_queue(:tos_update).with(instance_of(User), admin_post.id).exactly(10)
Expand Down

0 comments on commit 6a39395

Please sign in to comment.