diff --git a/config/site_settings.yml b/config/site_settings.yml index 03c0d951f09..714fa88b7a0 100644 --- a/config/site_settings.yml +++ b/config/site_settings.yml @@ -1131,7 +1131,7 @@ email: default: true hidden: true preserve_email_structure_when_styling: - default: false + default: true hidden: true files: diff --git a/spec/components/email/styles_spec.rb b/spec/components/email/styles_spec.rb index 74addfe29dd..c53d56da888 100644 --- a/spec/components/email/styles_spec.rb +++ b/spec/components/email/styles_spec.rb @@ -19,13 +19,6 @@ describe Email::Styles do end context "basic formatter" do - - it "works with an empty string" do - style = Email::Styles.new("") - style.format_basic - expect(style.to_html).to be_blank - end - it "adds a max-width to large images" do frag = basic_fragment("") expect(frag.at("img")["style"]).to match("max-width") @@ -56,12 +49,6 @@ describe Email::Styles do end context "html template formatter" do - it "works with an empty string" do - style = Email::Styles.new("") - style.format_html - expect(style.to_html).to be_blank - end - it "attaches a style to h3 tags" do frag = html_fragment("