Module: WickedPdf::WickedPdfHelper::Assets

Defined in:
lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb

Instance Method Summary collapse

Instance Method Details

#wicked_pdf_image_tag(img, options = {}) ⇒ Object

Disables the images in the PDFs as those requests would be jamming under the test environment



14
# File 'lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb', line 14

def wicked_pdf_image_tag(img, options = {}); end

#wicked_pdf_stylesheet_pack_tagObject

Force wicked_pdf styles to have a relative path, to prevent fetching them from a host



8
9
10
# File 'lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb', line 8

def wicked_pdf_stylesheet_pack_tag(*)
  stylesheet_pack_tag(*)
end