Sha256: 3dd4befe39a9dc52ec6c285b894983027cfca2f7f48005f55ac30a2d377c90eb

Contents?: true

Size: 388 Bytes

Versions: 9

Compression:

Stored size: 388 Bytes

Contents

SPEC_ROOT = File.dirname(__FILE__)
$LOAD_PATH.unshift(SPEC_ROOT)
$LOAD_PATH.unshift(File.join(SPEC_ROOT, '..', 'lib'))
require 'pdfkit'
require 'rspec'
require 'rspec/autorun'
require 'mocha'
require 'rack'

RSpec.configure do |config|
  
  config.before do
    PDFKit.any_instance.stubs(:wkhtmltopdf).returns(
      File.join(SPEC_ROOT,'..','bin','wkhtmltopdf-proxy')
    )
  end
  
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
thelinuxlich-pdfkit-0.4.6 spec/spec_helper.rb
pdfkit-0.4.6 spec/spec_helper.rb
pdfkit-0.4.5 spec/spec_helper.rb
pdfkit-0.4.4 spec/spec_helper.rb
pdfkit-0.4.3 spec/spec_helper.rb
pdfkit-0.4.2 spec/spec_helper.rb
pdfkit-0.4.1 spec/spec_helper.rb
pdfkit-0.4.0 spec/spec_helper.rb
pdfkit_songrit-0.3.4 spec/spec_helper.rb