Skip to content

Commit

Permalink
Fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoyoussef committed Apr 19, 2022
1 parent 7422117 commit 3b1d72a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
7 changes: 4 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ gem 'bootsnap', '~> 1.11.0', require: false
gem 'figaro', '~> 1.2.0'
gem 'jbuilder'
gem 'mimemagic', '~> 0.4.3'
gem 'net-smtp'
gem 'net-imap'
gem 'net-pop'
gem 'net-http', require: false
gem 'net-smtp', '~> 0.1.0', require: false
gem 'net-imap', require: false
gem 'net-pop', require: false
gem 'pg', '~> 1.3.0'
gem 'rails', '>= 6.0.3.1'
gem 'recaptcha', '~> 5.8', require: 'recaptcha/rails'
Expand Down
12 changes: 7 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ GEM
mini_portile2 (2.6.1)
minitest (5.14.4)
msgpack (1.5.1)
net-http (0.2.0)
net-protocol
uri
net-imap (0.2.3)
digest
net-protocol
Expand All @@ -147,10 +150,7 @@ GEM
timeout
net-protocol (0.1.3)
timeout
net-smtp (0.3.1)
digest
net-protocol
timeout
net-smtp (0.1.0)
nio4r (2.5.8)
nokogiri (1.12.5)
mini_portile2 (~> 2.6.1)
Expand Down Expand Up @@ -245,6 +245,7 @@ GEM
unicorn (6.0.0)
kgio (~> 2.6)
raindrops (~> 0.7)
uri (0.11.0)
webmock (3.14.0)
addressable (>= 2.8.0)
crack (>= 0.3.2)
Expand All @@ -269,9 +270,10 @@ DEPENDENCIES
listen (>= 3.0.5, < 3.8)
mimemagic (~> 0.4.3)
mina (~> 1.2.4)
net-http
net-imap
net-pop
net-smtp
net-smtp (~> 0.1.0)
passenger (>= 5.3.2)
pg (~> 1.3.0)
pry
Expand Down
2 changes: 1 addition & 1 deletion app/mailers/contact_request_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def confirmation_email(contact_request)
end

def contact_email(contact_request:, recipients:, mail_body:, raise_error: false)
raise ::Net::SMTPFatalError if Rails.env.test? && raise_error
raise Net::SMTPFatalError if Rails.env.test? && raise_error

if ApplicationMailer.ses_configured?
ses_contact_email(
Expand Down

0 comments on commit 3b1d72a

Please sign in to comment.