Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rspec and rdoc task in Rakefile

  • Loading branch information...
commit a59406fe34f0ca992c11f20c1965c81f56f33ae2 1 parent 4290832
Richard Huang authored
Showing with 22 additions and 2 deletions.
  1. +22 −2 Rakefile
24 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
Please sign in to comment.
Something went wrong with that request. Please try again.