Module: WickedPdf::WickedPdfHelper::Assets

Defined in:
decidim-dev/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 'decidim-dev/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_tag(*sources) ⇒ Object

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



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

def wicked_pdf_stylesheet_pack_tag(*sources)
  stylesheet_pack_tag(*sources)
end