spec/spec_helper.rb in pdfkit-0.4.6 vs spec/spec_helper.rb in pdfkit-0.5.0

- old
+ new

@@ -4,15 +4,11 @@ require 'pdfkit' require 'rspec' require 'rspec/autorun' require 'mocha' require 'rack' +require 'rack/test' +require 'custom_wkhtmltopdf_path' if File.exists?(File.join(SPEC_ROOT, 'custom_wkhtmltopdf_path.rb')) RSpec.configure do |config| - - config.before do - PDFKit.any_instance.stubs(:wkhtmltopdf).returns( - File.join(SPEC_ROOT,'..','bin','wkhtmltopdf-proxy') - ) - end - + include Rack::Test::Methods end