diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-09-13 09:24:12 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-09-13 09:24:12 +0000 |
commit | 9c9b1774cbdc2a6cdfbbf8cd33e87e62294e729a (patch) | |
tree | 7bb0ed161b707efdfecef7690d6eef78f062f8b4 /spec | |
parent | 3278681d26501963673ccec2fda417471e2a061c (diff) | |
parent | 6a97759ea86cd6d15eea1b17fd2526b4f0569108 (diff) | |
download | gitlab-ce-9c9b1774cbdc2a6cdfbbf8cd33e87e62294e729a.tar.gz |
Merge branch '37629-lazy-image-loading-breaks-notification-mails-for-an-added-screenshot' into 'master'
Resolve "Lazy image loading breaks notification mails for an added screenshot"
Closes #37629
See merge request !14161
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/banzai/pipeline/email_pipeline_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/lib/banzai/pipeline/email_pipeline_spec.rb b/spec/lib/banzai/pipeline/email_pipeline_spec.rb new file mode 100644 index 00000000000..6a11ca2f9d5 --- /dev/null +++ b/spec/lib/banzai/pipeline/email_pipeline_spec.rb @@ -0,0 +1,14 @@ +require 'rails_helper' + +describe Banzai::Pipeline::EmailPipeline do + describe '.filters' do + it 'returns the expected type' do + expect(described_class.filters).to be_kind_of(Banzai::FilterArray) + end + + it 'excludes ImageLazyLoadFilter' do + expect(described_class.filters).not_to be_empty + expect(described_class.filters).not_to include(Banzai::Filter::ImageLazyLoadFilter) + end + end +end |