Permalink
Browse files

Actually run specs under RSpec 2

  • Loading branch information...
1 parent 03ca9b3 commit 444077f4290c3977f21ac3b6787ac7f97d5f9e44 @jdpace jdpace committed Jun 18, 2010
Showing with 6 additions and 4 deletions.
  1. 0 spec/spec.opts → .rspec
  2. +6 −4 spec/spec_helper.rb
File renamed without changes.
View
@@ -2,14 +2,16 @@
$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

0 comments on commit 444077f

Please sign in to comment.