Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the way we are running the specs. This way is more common.
- Loading branch information
Showing
1 changed file
with
9 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,23 @@ | ||
require 'rubygems' | ||
# encoding: utf-8 | ||
require 'bundler' | ||
require 'rspec/core/rake_task' | ||
require "rake/rdoctask" | ||
|
||
Bundler::GemHelper.install_tasks | ||
|
||
desc "Run all specs" | ||
RSpec::Core::RakeTask.new(:spec) do |spec| | ||
spec.rspec_opts = ["--color"] | ||
spec.pattern = 'spec/**/*_spec.rb' | ||
end | ||
require 'rspec/core/rake_task' | ||
|
||
desc "Print specdocs" | ||
RSpec::Core::RakeTask.new(:doc) do |spec| | ||
spec.rspec_opts = ["--format", "specdoc"] | ||
spec.pattern = 'spec/*_spec.rb' | ||
end | ||
desc 'Default: run unit tests.' | ||
task :default => :spec | ||
|
||
desc "Generate the rdoc" | ||
Rake::RDocTask.new do |rdoc| | ||
files = ["README.rdoc", "LICENSE", "lib/**/*.rb"] | ||
rdoc.rdoc_files.add(files) | ||
rdoc.main = "README.rdoc" | ||
rdoc.title = "CouchRest: Ruby CouchDB, close to the metal" | ||
desc "Run all specs" | ||
RSpec::Core::RakeTask.new do |t| | ||
t.pattern = 'spec/**/*_spec.rb' | ||
t.rspec_opts = ["-c", "-f progress"] | ||
end | ||
|
||
desc "Run the rspec" | ||
task :default => :spec | ||
|
||
module Rake | ||
def self.remove_task(task_name) | ||
Rake.application.instance_variable_get('@tasks').delete(task_name.to_s) | ||
end | ||
end | ||
|
||
Rake.remove_task("github:release") | ||
Rake.remove_task("release") | ||
Rake.remove_task("release") |