Merge pull request #2080 from betagouv/frederic/fix_2071-text_only_mails

fix 2071 text only mails
This commit is contained in:
gregoirenovel 2018-06-10 14:15:10 +02:00 committed by GitHub
commit 69ecd7f4bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -74,6 +74,8 @@ gem 'hashie'
gem 'mailjet'
gem "premailer-rails"
gem 'smart_listing'
gem 'bootstrap-wysihtml5-rails', '~> 0.3.3.8'
@ -163,5 +165,3 @@ group :development, :test do
gem 'dotenv-rails'
gem 'rspec_junit_formatter'
end
gem "premailer-rails"

View file

@ -159,7 +159,7 @@ feature 'The gestionnaire part' do
def test_mail(to, content)
mail = ActionMailer::Base.deliveries.first
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
def test_statut_bar(a_suivre: 0, suivi: 0, traite: 0, tous_les_dossiers: 0, archive: 0)