Skip to content

Commit

Permalink
cleaned up and amended comments
Browse files Browse the repository at this point in the history
  • Loading branch information
machisuji committed Sep 1, 2021
1 parent b8c0455 commit b7c0e9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/workers/application_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ def perform
end
end

describe 'email configuration' do #, with_settings: { email_delivery_method: :smtp } do
# the email delivery method has to be smtp for the settings to be reloaded

describe 'email configuration' do
let(:ports) { [] }

before do
# pick a random job to test if the settings are updated
allow_any_instance_of(Principals::DeleteJob).to receive(:perform) do
ports << ActionMailer::Base.smtp_settings[:port]
end
end

it "is reloaded for each job" do
# the email delivery method has to be smtp for the settings to be reloaded
Setting.email_delivery_method = :smtp

Principals::DeleteJob.perform_now nil
Expand Down

0 comments on commit b7c0e9c

Please sign in to comment.