summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-09-12 11:14:54 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-09-12 11:54:14 -0400
commit6a97759ea86cd6d15eea1b17fd2526b4f0569108 (patch)
tree74d3ff854e59bc400a70bf3783bcfdf51f2e9e48 /spec/lib
parent0cd1563fb66e9ba533346fe3957912225e27000f (diff)
downloadgitlab-ce-6a97759ea86cd6d15eea1b17fd2526b4f0569108.tar.gz
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/banzai/pipeline/email_pipeline_spec.rb14
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