diff --git a/Gemfile b/Gemfile index 60638ebb4..ef32fe193 100644 --- a/Gemfile +++ b/Gemfile @@ -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" diff --git a/spec/features/new_gestionnaire/gestionnaire_spec.rb b/spec/features/new_gestionnaire/gestionnaire_spec.rb index 5c7617d17..34654a7e1 100644 --- a/spec/features/new_gestionnaire/gestionnaire_spec.rb +++ b/spec/features/new_gestionnaire/gestionnaire_spec.rb @@ -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)