Skip to content

Commit

Permalink
[issue-4351] hound cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Tooyosi committed Sep 2, 2024
1 parent dedc60d commit 554d4a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/api/v1/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@ def filter_by_params
def downcase_filter_params(param_value)
param_value.split(',').map(&:downcase)
end
end
end
2 changes: 1 addition & 1 deletion spec/workers/user_info_changed_mailer_worker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
RSpec.describe UserInfoChangedMailerWorker do
let(:project) { create(:project) }
let(:user) { create(:user) }
let(:prev_pass) { '[email protected]' }

context 'email delivery' do
it 'delivers the mail' do
expect { subject.perform(user.id, 'password') }.to change { ActionMailer::Base.deliveries.count }.by(1)
end

it 'delivers to the right recipients' do
let(:prev_pass) { '[email protected]' }
subject.perform(user.id, 'email', prev_pass)
mail = ActionMailer::Base.deliveries.last
expect(mail.to).to eq([user.email, prev_pass])
Expand Down

0 comments on commit 554d4a7

Please sign in to comment.