spec/prawn/stamp_spec.rb in prawn-2.3.0 vs spec/prawn/stamp_spec.rb in prawn-2.4.0

- old
+ new

@@ -114,12 +114,13 @@ # resorting to string matching output = pdf.render objects = output.split('endobj') objects.each do |object| - if %r{/Type /Page$}.match?(object) + case object + when %r{/Type /Page$} expect(object).to_not match(%r{/ExtGState}) - elsif %r{/Type /XObject$}.match?(object) + when %r{/Type /XObject$} expect(object).to match(%r{/ExtGState}) end end end