Merge pull request #2080 from betagouv/frederic/fix_2071-text_only_mails
fix 2071 text only mails
This commit is contained in:
commit
69ecd7f4bb
2 changed files with 3 additions and 3 deletions
4
Gemfile
4
Gemfile
|
@ -74,6 +74,8 @@ gem 'hashie'
|
||||||
|
|
||||||
gem 'mailjet'
|
gem 'mailjet'
|
||||||
|
|
||||||
|
gem "premailer-rails"
|
||||||
|
|
||||||
gem 'smart_listing'
|
gem 'smart_listing'
|
||||||
|
|
||||||
gem 'bootstrap-wysihtml5-rails', '~> 0.3.3.8'
|
gem 'bootstrap-wysihtml5-rails', '~> 0.3.3.8'
|
||||||
|
@ -163,5 +165,3 @@ group :development, :test do
|
||||||
gem 'dotenv-rails'
|
gem 'dotenv-rails'
|
||||||
gem 'rspec_junit_formatter'
|
gem 'rspec_junit_formatter'
|
||||||
end
|
end
|
||||||
|
|
||||||
gem "premailer-rails"
|
|
||||||
|
|
|
@ -159,7 +159,7 @@ feature 'The gestionnaire part' do
|
||||||
def test_mail(to, content)
|
def test_mail(to, content)
|
||||||
mail = ActionMailer::Base.deliveries.first
|
mail = ActionMailer::Base.deliveries.first
|
||||||
expect(mail.to).to match([to])
|
expect(mail.to).to match([to])
|
||||||
expect(mail.body.raw_source).to include(content)
|
expect(mail.body.parts.map(&:to_s)).to all(include(content))
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_statut_bar(a_suivre: 0, suivi: 0, traite: 0, tous_les_dossiers: 0, archive: 0)
|
def test_statut_bar(a_suivre: 0, suivi: 0, traite: 0, tous_les_dossiers: 0, archive: 0)
|
||||||
|
|
Loading…
Reference in a new issue