]> git.wincent.com - wikitext.git/commitdiff
Rakefile: simplify spec task by shelling out
authorWincent Colaiuta <win@wincent.com>
Sun, 25 Apr 2010 22:02:57 +0000 (00:02 +0200)
committerWincent Colaiuta <win@wincent.com>
Sun, 25 Apr 2010 22:02:57 +0000 (00:02 +0200)
Just run "spec spec" directly rather than depending on special support
and configuration from RSpec's "spec" Rake task.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
Rakefile

index 19ead98b46518e3e0f356b0d0ed2e8e00dbab4f4..8dbadd563173ec2480cea68cd1d18b113bbaaedb 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -16,7 +16,6 @@ require 'rake'
 require 'rake/clean'
 require 'rake/rdoctask'
 require 'rubygems'
-require 'spec/rake/spectask'
 require File.join(File.dirname(__FILE__), 'lib', 'wikitext', 'version.rb')
 
 CLEAN.include   Rake::FileList['**/*.so', '**/*.bundle', '**/*.o', '**/mkmf.log', '**/Makefile']
@@ -71,9 +70,8 @@ file built_extension => extension_files do
 end
 
 desc 'Run specs'
-Spec::Rake::SpecTask.new('spec') do |t|
-  t.spec_files  = FileList['spec/**/*_spec.rb']
-  t.spec_opts   = ['--color']
+task :spec => :make do
+  sh 'spec spec'
 end
 
 Rake::RDocTask.new do |t|