From 7d9831abedef52b7748b227452d4933e7588da12 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Wed, 17 Feb 2010 07:02:48 -0600 Subject: [PATCH] Add rspec task to rake in order to test multiple versions of ruby --- Rakefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Rakefile b/Rakefile index 42fc6ce..8063af1 100644 --- a/Rakefile +++ b/Rakefile @@ -34,6 +34,12 @@ rescue LoadError puts "Rake Compiler not available. Install it with: gem install rake-compiler" end +require 'spec/rake/spectask' +Spec::Rake::SpecTask.new(:spec) do |spec| + spec.libs << 'lib' << 'spec' + spec.spec_files = FileList['spec/**/*_spec.rb'] +end + desc "Build gem" task :gem => :build