Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 23 lines (18 sloc) 0.669 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
require 'rubygems'
require 'rake'
require 'rake/testtask'

prawn_fast_png_lib = File.join(File.dirname(__FILE__), 'lib')
prawn_dir = ENV['PRAWN_DIR'] || '../../prawn/src'
prawn_require = ENV['PRAWN_REQUIRE'] || 'prawn' # use prawn/core for 0.8, 0.7, 0.6, 0.5
prawn_dir = File.expand_path(prawn_dir)
puts "(in #{prawn_dir})"
Dir.chdir prawn_dir

task :default => [:test]

desc "Run all tests, test-spec, mocha, and pdf-reader required"
Rake::TestTask.new do |test|
  test.ruby_opts << "-r'#{prawn_require}' -r'prawn/fast_png'"
  test.libs << prawn_fast_png_lib
  test.libs << "spec"
  test.test_files = Dir["spec/*_spec.rb"]
  test.verbose = true
end

Something went wrong with that request. Please try again.