spec/spec_helper.rb in pdfkit-0.3.1 vs spec/spec_helper.rb in pdfkit-0.3.2
- old
+ new
@@ -1,15 +1,17 @@
SPEC_ROOT = File.dirname(__FILE__)
$LOAD_PATH.unshift(SPEC_ROOT)
$LOAD_PATH.unshift(File.join(SPEC_ROOT, '..', 'lib'))
require 'pdfkit'
-require 'spec'
-require 'spec/autorun'
+require 'rspec'
+require 'rspec/autorun'
require 'mocha'
-Spec::Runner.configure do |config|
+RSpec.configure do |config|
config.before do
- PDFKit.any_instance.stubs(:wkhtmltopdf).returns(File.join(SPEC_ROOT,'..','bin','wkhtmltopdf-proxy'))
+ PDFKit.any_instance.stubs(:wkhtmltopdf).returns(
+ File.join(SPEC_ROOT,'..','bin','wkhtmltopdf-proxy')
+ )
end
end