Permalink
Browse files

Addes a task for rspec.

  • Loading branch information...
1 parent 7db7b84 commit b7cd9001b8d60be9ed3859b78088b801d7c3dba4 @jugyo committed May 23, 2009
Showing with 5 additions and 2 deletions.
  1. +5 −2 Rakefile
View
@@ -1,7 +1,10 @@
$:.unshift File.dirname(__FILE__) + '/lib/'
-task :spec do
- system 'spec', 'spec'
+require 'spec/rake/spectask'
+desc 'run all specs'
+Spec::Rake::SpecTask.new do |t|
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ t.spec_opts = ['-c']
end
desc 'Generate gemspec'

0 comments on commit b7cd900

Please sign in to comment.