1 require 'rake/testtask'
2 require 'spec/rake/spectask'
6 Spec::Rake::SpecTask.new(:spec) do |t|
8 t.spec_files = FileList["#{File.dirname(__FILE__)}/spec/**/*_spec.rb"]
9 t.spec_opts = %w(--backtrace --diff --color)
10 t.libs << "#{File.dirname(__FILE__)}/spec"
11 t.libs << "#{File.dirname(__FILE__)}/spec/torspec"
14 desc "Build a gem file."
16 system "gem build torspec.gemspec"
19 # Load custom rake tasks.
20 Dir["#{File.dirname(__FILE__)}/lib/tasks/**/*.rake"].sort.each do |task|