Skip to content

Commit

Permalink
Adjust welcome_petitioner_mail
Browse files Browse the repository at this point in the history
  • Loading branch information
skoolstra committed Jan 4, 2024
1 parent fdbd039 commit 0eded88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/mailers/petition_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def welcome_petitioner_mail(petition, user, password)

I18n.with_locale(tld) do
subject = t('mail.petition.confirm.subject', petition_name: petition.name)
mail(to: @user.email, bcc: 'webmaster@petities.nl', subject: subject)
mail(to: @user.email, subject: subject)
end
end

Expand Down
3 changes: 1 addition & 2 deletions test/mailers/petition_mailer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class PetitionMailerTest < ActionMailer::TestCase
include TestInDutchHelper

setup :initialize_petition

test 'adoption_request_signatory_mail' do
Expand Down Expand Up @@ -102,7 +102,6 @@ class PetitionMailerTest < ActionMailer::TestCase

assert_equal ['webmaster@petities.nl'], mail.from
assert_equal [user.email], mail.to
assert_equal ['webmaster@petities.nl'], mail.bcc
assert_equal "Verder met uw petitie \"#{@petition.name}\" met deze inloggegevens", mail.subject

assert_match password, mail.body.encoded
Expand Down

0 comments on commit 0eded88

Please sign in to comment.