Permalink
Browse files

Add rake task for running specs

  • Loading branch information...
1 parent aa57bae commit bc9b087eb03e7a3fa8cf52dfc8cf51df52e1395e @brandonaaron brandonaaron committed Dec 14, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 Rakefile
View
@@ -71,6 +71,12 @@ Rake::RDocTask.new do |rd|
rd.rdoc_dir = "rdoc"
end
+require "rspec/core/rake_task"
+RSpec::Core::RakeTask.new("spec") do |t|
+ t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
+ t.pattern = 'spec/**/*_spec.rb'
+end
+
desc 'Clear out RDoc and generated packages'
task :clean => [:clobber_rdoc, :clobber_package] do
rm "#{spec.name}.gemspec"

0 comments on commit bc9b087

Please sign in to comment.