Permalink
Browse files

rspec and rdoc task in Rakefile

  • Loading branch information...
1 parent 4290832 commit a59406fe34f0ca992c11f20c1965c81f56f33ae2 @flyerhzm committed Dec 15, 2010
Showing with 22 additions and 2 deletions.
  1. +22 −2 Rakefile
View
@@ -1,5 +1,25 @@
require 'bundler'
Bundler::GemHelper.install_tasks
-require "spec/rake/spectask"
-Spec::Rake::SpecTask.new
+require "rake"
+require "rake/rdoctask"
+require "rspec"
+require "rspec/core/rake_task"
+
+Rspec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = "spec/**/*_spec.rb"
+end
+
+Rspec::Core::RakeTask.new('spec:progress') do |spec|
+ spec.rspec_opts = %w(--format progress)
+ spec.pattern = "spec/**/*_spec.rb"
+end
+
+Rake::RDocTask.new do |rdoc|
+ rdoc.rdoc_dir = "rdoc"
+ rdoc.title = "uniform_notifier #{UniformNotifier::VERSION}"
+ rdoc.rdoc_files.include("README*")
+ rdoc.rdoc_files.include("lib/**/*.rb")
+end
+
+task :default => :spec

0 comments on commit a59406f

Please sign in to comment.