Sha256: 029d1f93b3453f4425a2c778ee78161c0d9fa761b663046886ce1ca725f3c69b

Contents?: true

Size: 560 Bytes

Versions: 19

Compression:

Stored size: 560 Bytes

Contents

# frozen_string_literal: true

class WickedPdf
  module WickedPdfHelper
    module Assets
      # Force wicked_pdf styles to have a relative path, to prevent fetching
      # them from a host
      def wicked_pdf_stylesheet_pack_tag(*sources)
        stylesheet_pack_tag(*sources)
      end

      # Disables the images in the PDFs as those requests would be jamming under
      # the test environment
      def wicked_pdf_image_tag(img, options = {}); end
    end
  end
end

RSpec.configure do |config|
  config.include WickedPdf::WickedPdfHelper::Assets
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-dev-0.28.4 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.27.9 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.28.3 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.27.8 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.28.2 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.27.7 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.28.1 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.27.6 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.28.0 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.27.5 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.28.0.rc5 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.28.0.rc4 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.27.4 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.27.3 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.27.2 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.27.1 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.27.0 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.27.0.rc2 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
decidim-dev-0.27.0.rc1 lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb